mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-01 15:45:06 +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)
|
deallocShared(queue)
|
||||||
return success()
|
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.
|
## Create a signal queue compatible with Chronos async.
|
||||||
result = success cast[ptr SignalQueue[T]](allocShared0(sizeof(SignalQueue[T])))
|
result = success cast[ptr SignalQueue[T]](allocShared0(sizeof(SignalQueue[T])))
|
||||||
let sigRes = ThreadSignalPtr.new()
|
let sigRes = ThreadSignalPtr.new()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user