Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
(defun concurrency-example (&optional (out *standard-output*))
|
||||
(let ((lock (bordeaux-threads:make-lock)))
|
||||
(flet ((writer (string)
|
||||
#'(lambda ()
|
||||
(bordeaux-threads:acquire-lock lock t)
|
||||
(write-line string out)
|
||||
(bordeaux-threads:release-lock lock))))
|
||||
(bordeaux-threads:make-thread (writer "Enjoy"))
|
||||
(bordeaux-threads:make-thread (writer "Rosetta"))
|
||||
(bordeaux-threads:make-thread (writer "Code")))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue