WINDOWS IS SUFFERING
This commit is contained in:
parent
328be8f846
commit
67a85221d5
7 changed files with 114 additions and 74 deletions
|
@ -80,6 +80,13 @@ public:
|
|||
Sleep((DWORD)ms);
|
||||
}
|
||||
|
||||
// Not available on *nix platforms
|
||||
static inline void cancelIO(const Thread &t)
|
||||
{
|
||||
if (t._th != NULL)
|
||||
CancelSynchronousIo(t._th);
|
||||
}
|
||||
|
||||
private:
|
||||
HANDLE _th;
|
||||
DWORD _tid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue