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 3.0 "Montgomery Scott" on Thu Mar 11 15:03:50 2021 GMT+0.
• Introduction | What thread.comm.rendezvous is all about | |
• Systems | The systems documentation | |
• Modules | The modules documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
(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: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The thread.comm.rendezvous system |
Kazuo Koga
MIT
Rendezvous thread synchronization
# 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
thread.comm.rendezvous.asd (file)
src (module)
Modules are listed depth-first from the system components tree.
• The thread.comm.rendezvous/src module |
thread.comm.rendezvous (system)
src/
rendezvous.lisp (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The thread.comm.rendezvous.asd file | ||
• The thread.comm.rendezvous/src/rendezvous.lisp file |
Next: The thread․comm․rendezvous/src/rendezvous․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
thread.comm.rendezvous.asd
thread.comm.rendezvous (system)
Previous: The thread․comm․rendezvous․asd file, Up: Lisp files [Contents][Index]
src (module)
src/rendezvous.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The cl-rendezvous-asd package | ||
• The thread.comm.rendezvous package |
Next: The thread․comm․rendezvous package, Previous: Packages, Up: Packages [Contents][Index]
thread.comm.rendezvous.asd
Previous: The cl-rendezvous-asd package, Up: Packages [Contents][Index]
rendezvous.lisp (file)
common-lisp
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported functions | ||
• Exported generic functions |
Next: Exported generic functions, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
rendezvous.lisp (file)
Previous: Exported functions, Up: Exported definitions [Contents][Index]
rendezvous.lisp (file)
rendezvous.lisp (file)
rendezvous.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal functions | ||
• Internal classes |
Next: Internal classes, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
rendezvous.lisp (file)
Add NICKNAME (:RDV by default) to the :THREAD.COMM.RENDEZVOUS package.
rendezvous.lisp (file)
rendezvous.lisp (file)
rendezvous.lisp (file)
rendezvous.lisp (file)
rendezvous.lisp (file)
Previous: Internal functions, Up: Internal definitions [Contents][Index]
rendezvous.lisp (file)
standard-object (class)
:name
(thread.comm.rendezvous::make-tconc)
(bordeaux-threads:make-lock)
(bordeaux-threads:make-condition-variable)
0
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L M T |
---|
Jump to: | F L M T |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [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 type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | C L N Q R S |
---|
Jump to: | C L N Q R S |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | C P R S T |
---|
Jump to: | C P R S T |
---|