omnithread 2.5 NT resource leak

Tim S. Woodall tim@redpt.com
Mon, 23 Feb 1998 22:47:27 -0600


The NT omnithread library (2.5beta) appears to be missing the
lines indicated below to release the thread's semaphore handle.


> //
> // Destructor for omni_thread.
> //
>
> omni_thread::~omni_thread(void)
> {
>     DB(cerr << "destructor called for thread " << id() << endl);
>     if (!CloseHandle(handle))
>         throw omni_thread_fatal(GetLastError());
> >>  if (!CloseHandle(cond_semaphore))             <<
> >>      throw omni_thread_fatal(GetLastError());  <<
> }
>

Regards,
Tim S. Woodall
RedPoint Software Corporation
tim@redpt.com