m_critsect.Leave();
+ OnDelete();
+
switch ( state )
{
case STATE_NEW:
}
//else: can't wait for detached threads
}
-
+
if (state == STATE_NEW)
return wxTHREAD_MISC_ERROR;
- // for coherency with the MSW implementation, signal the user that
+ // for coherency with the MSW implementation, signal the user that
// Delete() was called on a thread which didn't start to run yet.
return wxTHREAD_NO_ERROR;
wxCHECK_MSG( This() != this, wxTHREAD_MISC_ERROR,
wxT("a thread can't kill itself") );
+ OnKill();
+
switch ( m_internal->GetState() )
{
case STATE_NEW: