Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the thread.comm.rendezvous Reference Manual, version 11.10.2, generated automatically by Declt version 4.0 beta 2 "William Riker" on Wed Jun 15 05:59:00 2022 GMT+0.
Next: Systems, Previous: The thread.comm.rendezvous Reference Manual, Up: The thread.comm.rendezvous Reference Manual [Contents][Index]
(let ((rdv (make-rendezvous)))
(bordeaux-threads:make-thread (lambda () (accept-rendezvous rdv)))
(call-rendezvous rdv 2))
Use Quicklisp.
Thread.Comm.Rendezvous provides CSP(Communicating sequential processes) style inter thread communication channel.
All API are MT-Safe.
Currently run only on SBCL and Clozure-CL.
Make and return new rendezvous object.
Send value to and wait until rendezvous acceptor thread.
Return value or acceptor thread's reply value if acceptor has :reply keyword arg.
Return value from passed by rendezvous caller thread.
:reply should be one argument funcallable object. It called after accept call-rendezvous value and before restart call-rendezvous thread. It's evaluated value becomes call-rendezvous thread's return value.
Return rendezvous's name.
Add nickname for this package (:THREAD.COMM.RENDEZVOUS).
Copyright (c) 2011 Kazuo Koga
Licensed under the MIT License. (http://www.opensource.org/licenses/MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Next: Modules, Previous: Introduction, Up: The thread.comm.rendezvous Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
Rendezvous thread synchronization
Kazuo Koga
MIT
# Thread.Comm.Rendezvous
## Usage
(let ((rdv (make-rendezvous)))
(bordeaux-threads:make-thread (lambda () (accept-rendezvous rdv)))
(call-rendezvous rdv 2))
## Installation
Use Quicklisp.
## API
Thread.Comm.Rendezvous provides [CSP(Communicating sequential processes)](http://en.wikipedia.org/wiki/Communicating_sequential_processes) style inter thread communication channel.
All API are MT-Safe.
Currently run only on SBCL and Clozure-CL.
### [Function] make-rendezvous (&optional name)
Make and return new rendezvous object.
### [Generic Function] call-rendezvous (rendezvous value)
Send _value_ to and wait until _rendezvous_ acceptor thread.
Return _value_ or acceptor thread’s reply value if acceptor has :reply keyword arg.
### [Generic Function] accept-rendezvous (rendezvous &key reply)
Return _value_ from passed by _rendezvous_ caller thread.
_:reply_ should be one argument funcallable object.
It called after accept call-rendezvous _value_ and before restart call-rendezvous thread.
It’s evaluated value becomes call-rendezvous thread’s return value.
### [Generic Function] rendezvous-name (rendezvous)
Return _rendezvous_’s name.
### [Function] nickname-package (&optional (name :rdv))
Add nickname for this package (:THREAD.COMM.RENDEZVOUS).
## Author
* Kazuo Koga
## Copyright
Copyright (c) 2011 Kazuo Koga
# License
Licensed under the MIT License.
(http://www.opensource.org/licenses/MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11.10.2
src (module).
Next: Files, Previous: Systems, Up: The thread.comm.rendezvous Reference Manual [Contents][Index]
Modules are listed depth-first from the system components tree.
thread.comm.rendezvous (system).
rendezvous.lisp (file).
Next: Packages, Previous: Modules, Up: The thread.comm.rendezvous Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: thread.comm.rendezvous/src/rendezvous.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
thread.comm.rendezvous (system).
Previous: thread.comm.rendezvous/thread.comm.rendezvous.asd, Up: Lisp [Contents][Index]
src (module).
Next: Definitions, Previous: Files, Up: The thread.comm.rendezvous Reference Manual [Contents][Index]
Packages are listed by definition order.
Next: cl-rendezvous-asd, Previous: Packages, Up: Packages [Contents][Index]
common-lisp.
Previous: thread.comm.rendezvous, Up: Packages [Contents][Index]
Next: Indexes, Previous: Packages, Up: The thread.comm.rendezvous Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Next: Generic functions, Previous: Public Interface, Up: Public Interface [Contents][Index]
Next: Standalone methods, Previous: Ordinary functions, Up: Public Interface [Contents][Index]
Previous: Generic functions, Up: Public Interface [Contents][Index]
Previous: Public Interface, Up: Definitions [Contents][Index]
Add NICKNAME (:RDV by default) to the :THREAD.COMM.RENDEZVOUS package.
Previous: Ordinary functions, Up: Internals [Contents][Index]
Previous: Definitions, Up: The thread.comm.rendezvous Reference Manual [Contents][Index]
Jump to: | A C F G M N P R T |
---|
Jump to: | A C F G M N P R T |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
Jump to: | C L N Q R S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
C | |||
condvar : | Private classes | ||
| |||
L | |||
lock : | Private classes | ||
| |||
N | |||
name : | Private classes | ||
| |||
Q | |||
queue : | Private classes | ||
| |||
R | |||
reader-count : | Private classes | ||
| |||
S | |||
Slot, condvar : | Private classes | ||
Slot, lock : | Private classes | ||
Slot, name : | Private classes | ||
Slot, queue : | Private classes | ||
Slot, reader-count : | Private classes | ||
|
Jump to: | C L N Q R S |
---|
Jump to: | C F M P R S T |
---|
Jump to: | C F M P R S T |
---|