bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Common c++ Thread::notify implementation question.


From: Jim
Subject: Common c++ Thread::notify implementation question.
Date: Tue, 04 Mar 2008 09:29:33 -0500
User-agent: Thunderbird 2.0.0.9 (X11/20071031)

I'm a bit hazy as to what exactly one would do with this method. I'm in need of kicking off a detached thread and somehow being able to tell when it finishes. Since a detached thread is self deleting, it's dangerous to attempt to call any methods after the detach or you risk a segfault.

So I see the parameter to the notify method is the thread that as terminated. I'm not sure of what can be done with it at this point. Is this the same thing you would obtain with a call to the static get method?

The documentation says it "sends a notification to the parent". Can someone explain how this might work? A simple example might be nice.

Thanks,
Jim.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]