mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-04 03:36:34 +02:00
Revise optional args
This commit is contained in:
parent
a8797c7f84
commit
d31cd5e509
1 changed files with 4 additions and 2 deletions
|
@ -291,10 +291,12 @@ Predicate to determine if `obj` is a thread pool. Returns `#t` if so, `#f` other
|
||||||
|
|
||||||
### make-thread-pool
|
### make-thread-pool
|
||||||
|
|
||||||
(make-thread-pool thread-count)
|
(make-thread-pool thread-count [handler])
|
||||||
|
|
||||||
Create a new thread pool consisting of `thread-count` threads.
|
Create a new thread pool consisting of `thread-count` threads.
|
||||||
|
|
||||||
|
If `handler` is specified then it will be used as each thread's default exception handler.
|
||||||
|
|
||||||
### thread-pool-size
|
### thread-pool-size
|
||||||
|
|
||||||
(thread-pool-size tp)
|
(thread-pool-size tp)
|
||||||
|
@ -323,7 +325,7 @@ Add a new task to the given thread pool `tp`.
|
||||||
|
|
||||||
### thread-pool-release!
|
### thread-pool-release!
|
||||||
|
|
||||||
(thread-pool-release! tp . how)
|
(thread-pool-release! tp [how])
|
||||||
|
|
||||||
Call this if the thread pool `tp` will no longer be used. All thread pool threads are stopped and cleaned up by the system.
|
Call this if the thread pool `tp` will no longer be used. All thread pool threads are stopped and cleaned up by the system.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue