Skip to content

Commit

Permalink
Update l0-aprims.lisp
Browse files Browse the repository at this point in the history
  • Loading branch information
Slids authored May 17, 2020
1 parent 255bc63 commit f4009ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions level-0/l0-aprims.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ synchronization between threads."
(report-bad-arg rw 'read-write-lock)))


(defun %make-semaphore-ptr (&key (count 0))
(defun %make-semaphore-ptr (count)
(let* ((p (ff-call (%kernel-import target::kernel-import-new-semaphore)
:signed-fullword count
:address)))
Expand All @@ -205,7 +205,7 @@ synchronization between threads."
(defun make-semaphore (&key (count 0))
"Create and return a semaphore, which can be used for synchronization
between threads."
(%istruct 'semaphore (%make-semaphore-ptr :count count)))
(%istruct 'semaphore (%make-semaphore-ptr count)))

(defun semaphorep (x)
(istruct-typep x 'semaphore))
Expand Down

0 comments on commit f4009ab

Please sign in to comment.