21 INLINE ThreadWin32Impl::
22 ThreadWin32Impl(
Thread *parent_obj) :
24 _parent_obj(parent_obj)
36 INLINE
void ThreadWin32Impl::
45 INLINE
void ThreadWin32Impl::
54 INLINE
Thread *ThreadWin32Impl::
55 get_current_thread() {
56 if (!_got_pt_ptr_index) {
59 return (
Thread *)TlsGetValue(_pt_ptr_index);
69 INLINE
void ThreadWin32Impl::
70 bind_thread(
Thread *thread) {
71 if (!_got_pt_ptr_index) {
74 BOOL result = TlsSetValue(_pt_ptr_index, thread);
83 INLINE
bool ThreadWin32Impl::
84 is_threading_supported() {
93 INLINE
bool ThreadWin32Impl::
103 INLINE
bool ThreadWin32Impl::
104 is_simple_threads() {
113 INLINE
void ThreadWin32Impl::
114 sleep(
double seconds) {
115 Sleep((
int)(seconds * 1000));
123 INLINE
void ThreadWin32Impl::
133 INLINE
void ThreadWin32Impl::
A thread; that is, a lightweight process.