omnithread 2.5 NT resource leak
Tristan Richardson
tjr@orl.co.uk
Tue, 24 Feb 1998 18:07:37 +0000
> 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()); <<
> > }
> >
Well spotted. We'll fix our develop version so it makes it into the next
release.
Cheers
Tristan