This commit is contained in:
Jaremy Creechley 2023-09-26 20:41:57 -07:00
parent 686ea8e4b3
commit 25e16f9475
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -48,10 +48,12 @@ type
TaskCtxObj*[T: ThreadTypes] = object
res: ThreadResult[T]
signal: ThreadSignalPtr
running: bool
cancelled: bool
running: bool ## used to mark when a task worker is running
cancelled: bool ## used to cancel a task before it's started
TaskCtx*[T] = SharedPtr[TaskCtxObj[T]]
## Task context object.
## This is a SharedPtr to make the query iter simpler
ThreadDatastore* = ref object of Datastore
tp: Taskpool