SetEvent (cancel_event);
return 0;
}
-
else if (equal (thread, self))
{
mutex.unlock ();
pthread::suspend_except_self ()
{
if (valid && this != pthread::self ())
- SuspendThread (win32_obj_id);
+ SuspendThread (win32_obj_id);
}
void
pthread::resume ()
{
if (valid)
- ResumeThread (win32_obj_id);
+ ResumeThread (win32_obj_id);
}
/* static members */
int
semaphore::getvalue (sem_t *sem, int *sval)
{
-
+
if (!is_good_object (sem)
|| __check_null_invalid_struct (sval, sizeof (int)))
{