File:  [DVB] / dietlibc / libpthread / pthread_cond_signal.c
Revision 1.4: download - view: text, annotated - select for diffs
Mon Sep 8 11:49:10 2003 UTC (20 years, 9 months ago) by sanjiyan
Branches: MAIN
CVS tags: HEAD
Thomas Walpuski found a bug and a missing prototype.

#include <unistd.h>
#include <errno.h>

#include <pthread.h>
#include "thread_internal.h"

int pthread_cond_signal(pthread_cond_t*cond) {
  _pthread_descr this=__thread_self();
  __NO_ASYNC_CANCEL_BEGIN_(this);
  LOCK(cond);

  if (cond->wait_chain) __thread_restart(cond->wait_chain);

  UNLOCK(cond);
  __NO_ASYNC_CANCEL_END_(this);
  return 0;
}


LinuxTV legacy CVS <linuxtv.org/cvs>