mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-03-04 04:40:54 +00:00
Fix windows & macos
This commit is contained in:
parent
1c7ef8201e
commit
77cd194075
@ -417,7 +417,7 @@ when defined(windows):
|
|||||||
## (Unix) for the specified dispatcher.
|
## (Unix) for the specified dispatcher.
|
||||||
return disp.ioPort
|
return disp.ioPort
|
||||||
|
|
||||||
proc closeIoHandler(disp: PDispatcher): Handle {.raises: [Defect, OSError].} =
|
proc closeIoHandler(disp: PDispatcher) {.raises: [Defect, OSError].} =
|
||||||
disp.ioPort.closeHandle()
|
disp.ioPort.closeHandle()
|
||||||
|
|
||||||
proc newDispatcher*(): PDispatcher {.raises: [Defect, CatchableError].} =
|
proc newDispatcher*(): PDispatcher {.raises: [Defect, CatchableError].} =
|
||||||
|
@ -129,7 +129,7 @@ proc close*[T](s: Selector[T]) =
|
|||||||
deallocSharedArray(s.fds)
|
deallocSharedArray(s.fds)
|
||||||
deallocShared(cast[pointer](s))
|
deallocShared(cast[pointer](s))
|
||||||
if res1 != 0 or res2 != 0:
|
if res1 != 0 or res2 != 0:
|
||||||
raiseIOSelectorsError(osLastError())
|
raiseOSError(osLastError())
|
||||||
|
|
||||||
proc newSelectEvent*(): SelectEvent =
|
proc newSelectEvent*(): SelectEvent =
|
||||||
var fds: array[2, cint]
|
var fds: array[2, cint]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user