diff options
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r-- | winsup/cygwin/cygheap.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index d9301d415..ad4511e5c 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -398,6 +398,7 @@ class cygheap_fdenum : public cygheap_fdmanip public: cygheap_fdenum (int start_fd = -1, bool lockit = false) { + locked = lockit; if (lockit) cygheap->fdtab.lock (); this->start_fd = fd = start_fd < 0 ? -1 : start_fd; @@ -415,27 +416,6 @@ class cygheap_fdenum : public cygheap_fdmanip } }; -class lock_process -{ - bool skip_unlock; -public: - lock_process (bool exiting = false) - { - cygheap->fdtab.lock (); - skip_unlock = exiting; - if (exiting && exit_state < ES_SET_MUTO) - { - exit_state = ES_SET_MUTO; - muto::set_exiting_thread (); - } - } - ~lock_process () - { - if (!skip_unlock) - cygheap->fdtab.unlock (); - } -}; - class child_info; void __stdcall cygheap_fixup_in_child (bool); extern "C" { |