Merge pull request #4618 from endragor/compatible-async-event
AsyncEvent compatible between Windows and non-Windows platforms
This commit is contained in:
commit
2db0f2d46d
1 changed files with 3 additions and 3 deletions
|
|
@ -1233,7 +1233,7 @@ when defined(windows) or defined(nimdoc):
|
|||
|
||||
registerWaitableHandle(p, hProcess, flags, pcd, proccb)
|
||||
|
||||
proc newEvent*(): AsyncEvent =
|
||||
proc newAsyncEvent*(): AsyncEvent =
|
||||
## Creates new ``AsyncEvent`` object.
|
||||
var sa = SECURITY_ATTRIBUTES(
|
||||
nLength: sizeof(SECURITY_ATTRIBUTES).cint,
|
||||
|
|
@ -1314,7 +1314,7 @@ else:
|
|||
readCB: Callback
|
||||
writeCB: Callback
|
||||
|
||||
AsyncEvent = SelectEvent
|
||||
AsyncEvent* = SelectEvent
|
||||
|
||||
PDispatcher* = ref object of PDispatcherBase
|
||||
selector: Selector[AsyncData]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue