This is the trivial-monitored-thread Reference Manual, version 0.3.11, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 07:56:42 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
trivial-monitored-thread
Trivial Monitored Thread offers a very simple (aka trivial) way of spawning threads and being informed when one any of them crash and die.
Eric Diethelm <ediethelm@yahoo.com>
MIT
0.3.11
trivial-utilities
(system).
log4cl
(system).
iterate
(system).
package.lisp
(file).
trivial-monitored-thread.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
trivial-monitored-thread/trivial-monitored-thread.asd
trivial-monitored-thread/package.lisp
trivial-monitored-thread/trivial-monitored-thread.lisp
trivial-monitored-thread/trivial-monitored-thread.asd
trivial-monitored-thread
(system).
trivial-monitored-thread/package.lisp
trivial-monitored-thread
(system).
trivial-monitored-thread/trivial-monitored-thread.lisp
trivial-monitored-thread
(system).
disable-condition-debugging
(function).
enable-condition-debugging
(function).
finished
(reader method).
(setf finished)
(writer method).
inform-thread-alive
(function).
join-thread
(function).
make-monitored-thread
(macro).
max-restarts
(reader method).
(setf max-restarts)
(writer method).
monitored-thread
(class).
print-object
(method).
raw-thread
(reader method).
(setf raw-thread)
(writer method).
register-on-dead-thread
(function).
restart-counter
(reader method).
(setf restart-counter)
(writer method).
running
(reader method).
(setf running)
(writer method).
shutdowndown-requested
(reader method).
(setf shutdowndown-requested)
(writer method).
sleep-duration
(reader method).
(setf sleep-duration)
(writer method).
start-thread
(function).
start-thread-monitor
(function).
stop-thread
(function).
stop-thread-monitor
(function).
thread-alive
(function).
thread-args
(reader method).
(setf thread-args)
(writer method).
thread-body
(reader method).
thread-id
(reader method).
(setf thread-id)
(writer method).
thread-name
(method).
*debug-conditions*
(special variable).
*shutdown-requested*
(special variable).
add-thread-to-monitor
(function).
all-threads
(reader method).
(setf all-threads)
(writer method).
get-monitored-thread
(function).
monitor-all-threads
(function).
monitor-thread
(reader method).
on-dead-thread-fn
(special variable).
thread-last-call
(reader method).
(setf thread-last-call)
(writer method).
thread-monitor
(special variable).
thread-monitor
(class).
total-threads
(reader method).
(setf total-threads)
(writer method).
Packages are listed by definition order.
trivial-monitored-thread
trivial-monitored-thread
common-lisp
.
disable-condition-debugging
(function).
enable-condition-debugging
(function).
finished
(generic reader).
(setf finished)
(generic writer).
inform-thread-alive
(function).
join-thread
(function).
make-monitored-thread
(macro).
max-restarts
(generic reader).
(setf max-restarts)
(generic writer).
monitored-thread
(class).
raw-thread
(generic reader).
(setf raw-thread)
(generic writer).
register-on-dead-thread
(function).
restart-counter
(generic reader).
(setf restart-counter)
(generic writer).
running
(generic reader).
(setf running)
(generic writer).
shutdowndown-requested
(generic reader).
(setf shutdowndown-requested)
(generic writer).
sleep-duration
(generic reader).
(setf sleep-duration)
(generic writer).
start-thread
(function).
start-thread-monitor
(function).
stop-thread
(function).
stop-thread-monitor
(function).
thread-alive
(function).
thread-args
(generic reader).
(setf thread-args)
(generic writer).
thread-body
(generic reader).
thread-id
(generic reader).
(setf thread-id)
(generic writer).
thread-name
(generic function).
*debug-conditions*
(special variable).
*shutdown-requested*
(special variable).
add-thread-to-monitor
(function).
all-threads
(generic reader).
(setf all-threads)
(generic writer).
get-monitored-thread
(function).
monitor-all-threads
(function).
monitor-thread
(generic reader).
on-dead-thread-fn
(special variable).
thread-last-call
(generic reader).
(setf thread-last-call)
(generic writer).
thread-monitor
(special variable).
thread-monitor
(class).
total-threads
(generic reader).
(setf total-threads)
(generic writer).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Define and register a new monitored thread. The *body* of the thread will be executed in a loop. The thread will be started immediately.
*name* - A identifies string for the thread
*sleep-duration* - Define the time duration to yield between iterations (this will be cut to a maximum of 1 second)
*max-restarts* - Number of times this thread should be restarted
*args* - freely definable payload to be carried to the ’on-dead-thread’ function
*thread-initialization* - Code to be executed once before first thread start
*thread-cleanup* - Code to be executed after last thread stop
*restart-initialization* - Code to be executed before each thread restart
*restart-cleanup* - Code to be executed after last thread restart
*body* - Code to be executed repeatedly (this must not block)
Given the valid id of a monitored thread wait until it finishes. *thread-id* - The id of the monitored thread
Set the function *fn* to be called when a monitored thread dies.
The function must implement following lambda-list: (thread-id thread-args restart-counter max-restarts will-restart-p).
Initialize the underlying engine for monitoring threads.
*This function MUST be called before any other function from this namespace.*
Given the valid id of a monitored thread request it to shutdown. *thread-id* - The id of the monitored thread
Stops the thread monitor. Any thread that is not also stopped by (:kill-all t) will continue unmonitored with potentially unpredictable consequences. *kill-all* - stop all monitored threads before exiting. Might kill threads that take too long (> 3 seconds) to finish.
monitored-thread
)) ¶automatically generated reader method
monitored-thread
)) ¶automatically generated writer method
monitored-thread
)) ¶automatically generated reader method
monitored-thread
)) ¶automatically generated writer method
monitored-thread
)) ¶automatically generated reader method
monitored-thread
)) ¶automatically generated writer method
monitored-thread
)) ¶automatically generated reader method
monitored-thread
)) ¶automatically generated writer method
monitored-thread
)) ¶automatically generated reader method
monitored-thread
)) ¶automatically generated writer method
monitored-thread
)) ¶automatically generated reader method
monitored-thread
)) ¶automatically generated writer method
monitored-thread
)) ¶automatically generated reader method
monitored-thread
)) ¶automatically generated writer method
monitored-thread
)) ¶automatically generated reader method
args
.
monitored-thread
)) ¶automatically generated writer method
args
.
monitored-thread
)) ¶automatically generated reader method
body
.
monitored-thread
)) ¶automatically generated reader method
id
.
monitored-thread
)) ¶automatically generated writer method
id
.
monitored-thread
)) ¶(setf finished)
.
finished
.
(setf max-restarts)
.
max-restarts
.
print-object
.
(setf raw-thread)
.
raw-thread
.
(setf restart-counter)
.
restart-counter
.
(setf running)
.
running
.
(setf shutdowndown-requested)
.
shutdowndown-requested
.
(setf sleep-duration)
.
sleep-duration
.
(setf thread-args)
.
thread-args
.
thread-body
.
(setf thread-id)
.
thread-id
.
thread-name
.
:thread
:id
(function (lambda nil))
:body
This slot is read-only.
fixnum
0
:max-restarts
:args
Returns the new monitored thread
thread-monitor
)) ¶automatically generated reader method
thread-monitor
)) ¶automatically generated writer method
thread-monitor
)) ¶automatically generated reader method
thread-monitor
)) ¶automatically generated reader method
thread-monitor
)) ¶automatically generated writer method
thread-monitor
)) ¶automatically generated reader method
thread-monitor
)) ¶automatically generated writer method
Jump to: | (
A D E F G I J M P R S T |
---|
Jump to: | (
A D E F G I J M P R S T |
---|
Jump to: | *
A B F I M O R S T |
---|
Jump to: | *
A B F I M O R S T |
---|
Jump to: | C F M P S T |
---|
Jump to: | C F M P S T |
---|