Remove unused functions.

This commit is contained in:
David Xu 2008-04-02 08:33:42 +00:00
parent d6e0eb0a48
commit 8b873a2328
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177854
2 changed files with 0 additions and 55 deletions

View File

@ -290,56 +290,3 @@ _pthread_cond_broadcast(pthread_cond_t * cond)
return (cond_signal_common(cond, 1));
}
int
_pthread_cond_wait_unlocked(pthread_cond_t *cond, pthread_mutex_t *mutex,
const struct timespec *abstime)
{
struct pthread *curthread = _get_curthread();
struct timespec ts, ts2, *tsp;
pthread_cond_t cv;
int ret;
cv = *cond;
THR_UMUTEX_LOCK(curthread, &cv->c_lock);
_pthread_mutex_unlock(mutex);
if (abstime != NULL) {
clock_gettime(cv->c_clockid, &ts);
TIMESPEC_SUB(&ts2, abstime, &ts);
tsp = &ts2;
} else
tsp = NULL;
ret = _thr_ucond_wait(&cv->c_kerncv, &cv->c_lock, tsp, 0);
if (ret == EINTR)
ret = 0;
return (ret);
}
int
_pthread_cond_broadcast_unlock(pthread_cond_t *cond, pthread_mutex_t *mutex, int broadcast)
{
struct pthread *curthread = _get_curthread();
pthread_cond_t cv;
int ret = 0;
/*
* If the condition variable is statically initialized, perform dynamic
* initialization.
*/
if (__predict_false(*cond == NULL &&
(ret = init_static(curthread, cond)) != 0))
return (ret);
cv = *cond;
THR_UMUTEX_LOCK(curthread, &cv->c_lock);
_pthread_mutex_unlock(mutex);
if (!broadcast)
ret = _thr_ucond_signal(&cv->c_kerncv);
else
ret = _thr_ucond_broadcast(&cv->c_kerncv);
THR_UMUTEX_UNLOCK(curthread, &cv->c_lock);
return (ret);
}

View File

@ -670,8 +670,6 @@ void _thread_bp_death(void);
int _sched_yield(void);
int _pthread_getaffinity_np(pthread_t, size_t, cpuset_t *);
int _pthread_setaffinity_np(pthread_t, size_t, const cpuset_t *);
int _pthread_cond_wait_unlocked(pthread_cond_t *, pthread_mutex_t *, const struct timespec *) __hidden;
int _pthread_cond_broadcast_unlock(pthread_cond_t *, pthread_mutex_t *, int broadcast);
/* #include <fcntl.h> */
#ifdef _SYS_FCNTL_H_