diff options
Diffstat (limited to 'node/Thread.hpp')
| -rw-r--r-- | node/Thread.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/node/Thread.hpp b/node/Thread.hpp index 4d514687..6426d5bb 100644 --- a/node/Thread.hpp +++ b/node/Thread.hpp @@ -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;
|
