17 #ifndef _NPT_BSD_BLOCKER_SOCKET_H_ 18 #define _NPT_BSD_BLOCKER_SOCKET_H_ 24 #include "NptThreads.h" 38 NPT_UInt32 operator()(NPT_Thread::ThreadId i)
const {
return NPT_Fnv1aHash32(reinterpret_cast<const NPT_UInt8*>(&i),
sizeof(i)); }
47 Set(NPT_Thread::GetCurrentThreadId(), fd.
AsPointer());
50 Set(NPT_Thread::GetCurrentThreadId(), NULL);
53 static NPT_Result Cancel(NPT_Thread::ThreadId
id);
62 #endif // _NPT_BSD_BLOCKER_SOCKET_H_ Definition: NptThreads.h:234
T * AsPointer() const
Returns the naked pointer value.
Definition: NptReferences.h:120
Definition: NptThreads.h:76
Definition: NptBsdSockets.cpp:667
Definition: NptBsdBlockerSocket.h:44