|
@@ -95,6 +95,20 @@ start(ThreadPriority priority, bool global, bool joinable) {
|
|
|
return _started;
|
|
return _started;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: Thread::interrupt
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description: Sends an interrupt message to the thread. This will
|
|
|
|
|
+// interrupt any blocking-type system calls the thread
|
|
|
|
|
+// may be waiting on, such as I/O, so that the thread
|
|
|
|
|
+// may continue some other processing. The specific
|
|
|
|
|
+// behavior is implementation dependent.
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+INLINE void Thread::
|
|
|
|
|
+interrupt() {
|
|
|
|
|
+ _impl.interrupt();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: Thread::join
|
|
// Function: Thread::join
|
|
|
// Access: Public
|
|
// Access: Public
|