Changeset 3937
- Timestamp:
- 09/15/08 19:12:04 (2 months ago)
- Files:
-
- trunk/lib/common/tango/core/Thread.d (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/common/tango/core/Thread.d
r3803 r3937 2364 2364 } 2365 2365 2366 static if( is( typeof( ucontext_t )) )2366 static if( is( ucontext_t ) ) 2367 2367 obj.m_ucur = &obj.m_utxt; 2368 2368 … … 2451 2451 } 2452 2452 } 2453 else static if( is( typeof( ucontext_t )) )2453 else static if( is( ucontext_t ) ) 2454 2454 { 2455 2455 Fiber cfib = Fiber.getThis(); … … 2636 2636 Fiber cur = getThis(); 2637 2637 2638 static if( is( typeof( ucontext_t )) )2638 static if( is( ucontext_t ) ) 2639 2639 m_ucur = cur ? &cur.m_utxt : &Fiber.sm_utxt; 2640 2640 … … 2643 2643 setThis( cur ); 2644 2644 2645 static if( is( typeof( ucontext_t )) )2645 static if( is( ucontext_t ) ) 2646 2646 m_ucur = null; 2647 2647 … … 2739 2739 assert( cur.m_state == State.EXEC ); 2740 2740 2741 static if( is( typeof( ucontext_t )) )2741 static if( is( ucontext_t ) ) 2742 2742 cur.m_ucur = &cur.m_utxt; 2743 2743 … … 2769 2769 assert( cur.m_state == State.EXEC ); 2770 2770 2771 static if( is( typeof( ucontext_t )) )2771 static if( is( ucontext_t ) ) 2772 2772 cur.m_ucur = &cur.m_utxt; 2773 2773 … … 2824 2824 assert( status == 0 ); 2825 2825 2826 static if( is( typeof( ucontext_t )) )2826 static if( is( ucontext_t ) ) 2827 2827 { 2828 2828 status = getcontext( &sm_utxt ); … … 3143 3143 assert( cast(uint) pstack & 0x0f == 0 ); 3144 3144 } 3145 else static if( is( typeof( ucontext_t )) )3145 else static if( is( ucontext_t ) ) 3146 3146 { 3147 3147 getcontext( &m_utxt ); … … 3160 3160 void* m_pmem; 3161 3161 3162 static if( is( typeof( ucontext_t )) )3162 static if( is( ucontext_t ) ) 3163 3163 { 3164 3164 // NOTE: The static ucontext instance is used to represent the context












