Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the metalock Reference Manual, version 0.0.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 14:23:22 2020 GMT+0.
• Introduction | What metalock is all about | |
• Systems | The systems documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
This is a project simply provides a metaclass which when used means that you do not have to manually
manage locks. This package exports one thing metalock
which is a metaclass for use with whatever
class definitions you want. This metaclass is implemented using *-using-class methods so your
distribution of CL must use these methods to implement access functions like 'slot-value' for this metaclass to work. Obviously it must also implement the MOP. I have tested on SBCL 1.4.9 only.
Access to slots is controlled using read-writer locks described here: https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Using_a_condition_variable_and_a_mutex
(defclass myclass ()
((oneslot :accessor oneslot :initform 1))
(:metaclass metalock:metalock))
Instantiate and use like normal.
MIT
Next: Files, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The metalock system |
K1D77A
MIT
A metaclass that makes building parallel systems easier by providing each slot within a class a lock which is grabbed automatically.
0.0.1
metalock.asd (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The metalock.asd file | ||
• The metalock/package.lisp file | ||
• The metalock/readwriter-lock.lisp file | ||
• The metalock/metalock.lisp file |
Next: The metalock/package․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
metalock.asd
metalock (system)
Next: The metalock/readwriter-lock․lisp file, Previous: The metalock․asd file, Up: Lisp files [Contents][Index]
Next: The metalock/metalock․lisp file, Previous: The metalock/package․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
metalock (system)
readwriter-lock.lisp
Previous: The metalock/readwriter-lock․lisp file, Up: Lisp files [Contents][Index]
readwriter-lock.lisp (file)
metalock (system)
metalock.lisp
metalock (class)
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The metalock package |
package.lisp (file)
common-lisp
metalock (class)
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 classes |
Previous: Exported definitions, Up: Exported definitions [Contents][Index]
metalock.lisp (file)
standard-class (class)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal macros | ||
• Internal functions | ||
• Internal generic functions | ||
• Internal classes |
Next: Internal functions, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
readwriter-lock.lisp (file)
readwriter-lock.lisp (file)
readwriter-lock.lisp (file)
Next: Internal generic functions, Previous: Internal macros, Up: Internal definitions [Contents][Index]
metalock.lisp (file)
metalock.lisp (file)
Next: Internal classes, Previous: Internal functions, Up: Internal definitions [Contents][Index]
automatically generated reader method
readwriter-lock.lisp (file)
automatically generated writer method
readwriter-lock.lisp (file)
automatically generated reader method
readwriter-lock.lisp (file)
automatically generated writer method
readwriter-lock.lisp (file)
automatically generated reader method
readwriter-lock.lisp (file)
automatically generated writer method
readwriter-lock.lisp (file)
automatically generated reader method
readwriter-lock.lisp (file)
automatically generated writer method
readwriter-lock.lisp (file)
automatically generated reader method
readwriter-lock.lisp (file)
automatically generated writer method
readwriter-lock.lisp (file)
Previous: Internal generic functions, Up: Internal definitions [Contents][Index]
readwriter-lock.lisp (file)
standard-object (class)
(bordeaux-threads:make-condition-variable)
condition-var (generic function)
(setf condition-var) (generic function)
bordeaux-threads:lock
(bordeaux-threads:make-lock)
g-lock (generic function)
(setf g-lock) (generic function)
integer
0
readers-active (generic function)
(setf readers-active) (generic function)
integer
0
writers-waiting (generic function)
(setf writers-waiting) (generic function)
boolean
active-writer-p (generic function)
(setf active-writer-p) (generic function)
metalock.lisp (file)
standard-effective-slot-definition (class)
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 |
---|
Jump to: | F L M |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | (
A C F G M R S W |
---|
Jump to: | (
A C F G M R S W |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | A C G R S W |
---|
Jump to: | A C G R S W |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | C M P R S |
---|
Jump to: | C M P R S |
---|