rename queue

This commit is contained in:
Jaremy Creechley 2024-02-09 21:59:35 -07:00
parent fb3a50e0e7
commit be9b236c06
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,10 @@ type
signal: ThreadSignalPtr
chan*: ChanPtr[T]
proc destroy*[T](val: SignalQueue[T]) =
deallocShared(val.chan)
discard val.signal.close()
proc newSignalQueue*[T](maxItems: int = 0): SignalQueue[T] {.raises: [ApatheiaSignalErr].} =
let res = ThreadSignalPtr.new()
if res.isErr():

View File

@ -1,3 +1,4 @@
switch("path", "$projectDir/../src")
--threads:on
--mm:refc