diff options
author | Christopher Faylor <me@cgf.cx> | 2003-04-10 05:27:34 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-04-10 05:27:34 +0000 |
commit | e5d6d5359038c83580f8a239d7cf2b9c3a85559d (patch) | |
tree | e02b6825f92cec4e3c10c0677dabf93d1bd423d6 /winsup/cygwin/pwdgrp.h | |
parent | 57efd527df09df6b82734afb33861a1d4ddab3cd (diff) | |
download | newlib-e5d6d5359038c83580f8a239d7cf2b9c3a85559d.zip newlib-e5d6d5359038c83580f8a239d7cf2b9c3a85559d.tar.gz newlib-e5d6d5359038c83580f8a239d7cf2b9c3a85559d.tar.bz2 |
* cygthread.h: Change 'avail' cygthread element to 'inuse' throughout.
* cygthread.cc: Ditto.
(cygthread::stub): Don't initialize already initialized events.
(cygthread::freerange): Don't create thread here.
(cygthread::cygthread): Create thread here. Die if thread not created.
(cygthread::operator new): Simplify. Just grab a thread structure from the
pool. Don't try to start the thread.
(cygthread::terminate_thread): Don't close event handles. Just reuse them.
Call MEM_RELEASE rather than MEM_DECOMMIT (from Joe Buehler).
Diffstat (limited to 'winsup/cygwin/pwdgrp.h')
-rw-r--r-- | winsup/cygwin/pwdgrp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/pwdgrp.h b/winsup/cygwin/pwdgrp.h index aea340d..2b1e350 100644 --- a/winsup/cygwin/pwdgrp.h +++ b/winsup/cygwin/pwdgrp.h @@ -55,7 +55,7 @@ class pwdgrp i = (unsigned int) x; return res; } - bool next_num (int& i) + inline bool next_num (int& i) { unsigned long x; bool res = next_num (x); @@ -67,7 +67,7 @@ public: int curr_lines; void load (const char *); - void refresh (bool check) + inline void refresh (bool check) { if (!check && initialized) return; @@ -77,14 +77,14 @@ public: pglock->release (); } - pwdgrp (passwd *&pbuf) : + inline pwdgrp (passwd *&pbuf) : pwdgrp_buf_elem_size (sizeof (*pbuf)), passwd_buf (&pbuf) { read = &pwdgrp::read_passwd; parse = &pwdgrp::parse_passwd; new_muto (pglock); } - pwdgrp (__group32 *&gbuf) : + inline pwdgrp (__group32 *&gbuf) : pwdgrp_buf_elem_size (sizeof (*gbuf)), group_buf (&gbuf) { read = &pwdgrp::read_group; |