sintonia/library/ecasound-2.7.2/kvutils/kvu_threads.h

13 lines
381 B
C++

// -*- mode: C++; -*-
#ifndef INCLUDED_KVU_THREADS_H
#define INCLUDED_KVU_THREADS_H
#include <string>
#include <pthread.h>
int kvu_pthread_mutex_spinlock (pthread_mutex_t *mp, long int spinlimit);
int kvu_pthread_timed_wait(pthread_mutex_t* mutex, pthread_cond_t* cond, long int seconds);
std::string kvu_pthread_timed_wait_result(int result, const std::string& prefix);
#endif