f0968c1e7e
* cygtls.cc (_cygtls::init_thread): Initialize locals.cw_timer. (_cygtls::fixup_after_fork): Ditto. * tlsoffsets.h: Regenerate. * ntdll.h (enum _TIMER_INFORMATION_CLASS): Define. (struct _TIMER_BASIC_INFORMATION): Define. (NtQueryTimer): Declare function. * thread.h (cancelable_wait): Change timeout argument to PLARGE_INTEGER and provide NULL default. (fast_mutex::lock): Adjust accordingly. (pthread_cond::wait): Change timeout argument to PLARGE_INTEGER and default to NULL. * thread.cc (cancelable_wait): Change timeout argument to PLARGE_INTEGER. Initialize _cygtls.locals.cw_timer if needed. Use NT waitable timers for handling timeout. Return remaining time to timeout argument if timeout was relative. (pthread_cond::wait): Change timeout argument to PLARGE_INTEGER. Adjust to change in cancelable_wait. (pthread_mutex::lock): Adjust to change in cancelable_wait. (pthread_spinlock::lock): Ditto. (pthread::join): Ditto. (__pthread_cond_dowait): Change waitlength argument to PLARGE_INTEGER. Adjust to changes in cancelable_wait and pthread_cond::wait. (pthread_cond_timedwait): Adjust to change in __pthread_cond_dowait. (pthread_cond_wait): Ditto. (semaphore::_timedwait): Adjust to change in cancelable_wait. (semaphore::_wait): Ditto. * exceptions.cc (handle_sigsuspend): Ditto. * signal.cc (nanosleep): Ditto. * wait.cc (wait4): Ditto. Fix copyright dates. * times.cc (FACTOR, NSPERSEC): Move from here... * hires.h (FACTOR, NSPERSEC): ...to here.
118 lines
3.2 KiB
C
118 lines
3.2 KiB
C
//;# autogenerated: Do not edit.
|
|
|
|
//; $tls::sizeof__cygtls = 4048;
|
|
//; $tls::func = -12700;
|
|
//; $tls::pfunc = 0;
|
|
//; $tls::saved_errno = -12696;
|
|
//; $tls::psaved_errno = 4;
|
|
//; $tls::sa_flags = -12692;
|
|
//; $tls::psa_flags = 8;
|
|
//; $tls::oldmask = -12688;
|
|
//; $tls::poldmask = 12;
|
|
//; $tls::deltamask = -12684;
|
|
//; $tls::pdeltamask = 16;
|
|
//; $tls::event = -12680;
|
|
//; $tls::pevent = 20;
|
|
//; $tls::errno_addr = -12676;
|
|
//; $tls::perrno_addr = 24;
|
|
//; $tls::sigmask = -12672;
|
|
//; $tls::psigmask = 28;
|
|
//; $tls::sigwait_mask = -12668;
|
|
//; $tls::psigwait_mask = 32;
|
|
//; $tls::sigwait_info = -12664;
|
|
//; $tls::psigwait_info = 36;
|
|
//; $tls::thread_context = -12660;
|
|
//; $tls::pthread_context = 40;
|
|
//; $tls::thread_id = -12448;
|
|
//; $tls::pthread_id = 252;
|
|
//; $tls::threadkill = -12444;
|
|
//; $tls::pthreadkill = 256;
|
|
//; $tls::infodata = -12440;
|
|
//; $tls::pinfodata = 260;
|
|
//; $tls::tid = -12292;
|
|
//; $tls::ptid = 408;
|
|
//; $tls::local_clib = -12288;
|
|
//; $tls::plocal_clib = 412;
|
|
//; $tls::__dontuse = -12288;
|
|
//; $tls::p__dontuse = 412;
|
|
//; $tls::locals = -11200;
|
|
//; $tls::plocals = 1500;
|
|
//; $tls::_ctinfo = -9736;
|
|
//; $tls::p_ctinfo = 2964;
|
|
//; $tls::andreas = -9732;
|
|
//; $tls::pandreas = 2968;
|
|
//; $tls::wq = -9728;
|
|
//; $tls::pwq = 2972;
|
|
//; $tls::sig = -9700;
|
|
//; $tls::psig = 3000;
|
|
//; $tls::incyg = -9696;
|
|
//; $tls::pincyg = 3004;
|
|
//; $tls::spinning = -9692;
|
|
//; $tls::pspinning = 3008;
|
|
//; $tls::stacklock = -9688;
|
|
//; $tls::pstacklock = 3012;
|
|
//; $tls::stackptr = -9684;
|
|
//; $tls::pstackptr = 3016;
|
|
//; $tls::stack = -9680;
|
|
//; $tls::pstack = 3020;
|
|
//; $tls::initialized = -8656;
|
|
//; $tls::pinitialized = 4044;
|
|
//; __DATA__
|
|
|
|
#define tls_func (-12700)
|
|
#define tls_pfunc (0)
|
|
#define tls_saved_errno (-12696)
|
|
#define tls_psaved_errno (4)
|
|
#define tls_sa_flags (-12692)
|
|
#define tls_psa_flags (8)
|
|
#define tls_oldmask (-12688)
|
|
#define tls_poldmask (12)
|
|
#define tls_deltamask (-12684)
|
|
#define tls_pdeltamask (16)
|
|
#define tls_event (-12680)
|
|
#define tls_pevent (20)
|
|
#define tls_errno_addr (-12676)
|
|
#define tls_perrno_addr (24)
|
|
#define tls_sigmask (-12672)
|
|
#define tls_psigmask (28)
|
|
#define tls_sigwait_mask (-12668)
|
|
#define tls_psigwait_mask (32)
|
|
#define tls_sigwait_info (-12664)
|
|
#define tls_psigwait_info (36)
|
|
#define tls_thread_context (-12660)
|
|
#define tls_pthread_context (40)
|
|
#define tls_thread_id (-12448)
|
|
#define tls_pthread_id (252)
|
|
#define tls_threadkill (-12444)
|
|
#define tls_pthreadkill (256)
|
|
#define tls_infodata (-12440)
|
|
#define tls_pinfodata (260)
|
|
#define tls_tid (-12292)
|
|
#define tls_ptid (408)
|
|
#define tls_local_clib (-12288)
|
|
#define tls_plocal_clib (412)
|
|
#define tls___dontuse (-12288)
|
|
#define tls_p__dontuse (412)
|
|
#define tls_locals (-11200)
|
|
#define tls_plocals (1500)
|
|
#define tls__ctinfo (-9736)
|
|
#define tls_p_ctinfo (2964)
|
|
#define tls_andreas (-9732)
|
|
#define tls_pandreas (2968)
|
|
#define tls_wq (-9728)
|
|
#define tls_pwq (2972)
|
|
#define tls_sig (-9700)
|
|
#define tls_psig (3000)
|
|
#define tls_incyg (-9696)
|
|
#define tls_pincyg (3004)
|
|
#define tls_spinning (-9692)
|
|
#define tls_pspinning (3008)
|
|
#define tls_stacklock (-9688)
|
|
#define tls_pstacklock (3012)
|
|
#define tls_stackptr (-9684)
|
|
#define tls_pstackptr (3016)
|
|
#define tls_stack (-9680)
|
|
#define tls_pstack (3020)
|
|
#define tls_initialized (-8656)
|
|
#define tls_pinitialized (4044)
|