Boost logo

Boost :

From: Bill Klein (bill_at_[hidden])
Date: 2001-06-27 09:10:17

duncan_at_[hidden] wrote:
> Surely if the id is just a Win32 HANDLE then you have a leakage
> problem? Something has to close the handle to avoid a leak.

Yes, you need to call CloseHandle() to free the handle... This can
be the Win32 implementation of detach...

> If it were a Win32 thread id that is not good enough because
> something must maintain an open handle to guarantee the thread id's
> uniqueness. So you are back to ref-counted handle-body and
> presumably the ref count must be thread safe.

Well, any reason the ref-count has to be thread-safe particularly?
Chances are it would only be used by the parent thread...

Boost list run by bdawes at, gregod at, cpdaniel at, john at