Skip to content

Commit

Permalink
Comment about the transient hack on <cgen-mutex>
Browse files Browse the repository at this point in the history
  • Loading branch information
shirok committed Dec 4, 2023
1 parent ae81848 commit 36e5d66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/gauche/cgen/literal.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,8 @@
;; mutex --------------------------------------------------------

;; Literal mutex is useful when a macro wants to insert a global lock.
;; TRANSIENT: To compile 1.0 with 0.9.13, which doesn't export <mutex>,
;; we need a global-variable-ref hack. Remove it after 1.0 release.
(define-cgen-literal <cgen-mutex> (global-variable-ref 'gauche.threads '<mutex>)
((name :init-keyword :name))
(make (value)
Expand Down

0 comments on commit 36e5d66

Please sign in to comment.