17 INLINE ThreadWin32Impl::
18 ThreadWin32Impl(
Thread *parent_obj) :
20 _parent_obj(parent_obj)
30 INLINE
void ThreadWin32Impl::
37 INLINE
void ThreadWin32Impl::
44 INLINE
Thread *ThreadWin32Impl::
45 get_current_thread() {
46 if (!_got_pt_ptr_index) {
49 return (
Thread *)TlsGetValue(_pt_ptr_index);
56 INLINE
void ThreadWin32Impl::
57 bind_thread(
Thread *thread) {
58 if (!_got_pt_ptr_index) {
61 BOOL result = TlsSetValue(_pt_ptr_index, thread);
68 INLINE
bool ThreadWin32Impl::
69 is_threading_supported() {
76 INLINE
bool ThreadWin32Impl::
84 INLINE
bool ThreadWin32Impl::
92 INLINE
void ThreadWin32Impl::
93 sleep(
double seconds) {
94 Sleep((
int)(seconds * 1000));
100 INLINE
void ThreadWin32Impl::
108 INLINE
void ThreadWin32Impl::
A thread; that is, a lightweight process.