mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-01 07:35:22 +00:00
work around windows
This commit is contained in:
parent
ce12d0f3f9
commit
ca8e938836
@ -28,7 +28,9 @@ proc release*[T](queue: SignalQueuePtr[T]): ?!void =
|
||||
deallocShared(queue)
|
||||
return success()
|
||||
|
||||
proc newSignalQueue*[T](maxItems: int = 0): ?!SignalQueuePtr[T] =
|
||||
proc newSignalQueue*[T](
|
||||
maxItems: int = 0
|
||||
): Result[SignalQueuePtr[T], ref CatchableError] =
|
||||
## Create a signal queue compatible with Chronos async.
|
||||
result = success cast[ptr SignalQueue[T]](allocShared0(sizeof(SignalQueue[T])))
|
||||
let sigRes = ThreadSignalPtr.new()
|
||||
|
Loading…
x
Reference in New Issue
Block a user