tabs->spaces
This commit is contained in:
+10
-10
@@ -26,13 +26,13 @@ extern "C" {
|
||||
*
|
||||
*/
|
||||
struct uc_threadmsg{
|
||||
/**
|
||||
* A message type the application can use to
|
||||
/**
|
||||
* A message type the application can use to
|
||||
* discriminate different messages.
|
||||
* A negative value will cause a uc_threadmsg to
|
||||
* be added to the head of a queue.
|
||||
*/
|
||||
long msgtype;
|
||||
*/
|
||||
long msgtype;
|
||||
|
||||
/**
|
||||
* Internal pointer used by the uc_thread_queue.
|
||||
@@ -100,22 +100,22 @@ struct uc_threadqueue {
|
||||
* Number of elements in the queue.
|
||||
* Use #threadqueue_length to read it.
|
||||
*/
|
||||
unsigned int num_elements;
|
||||
unsigned int num_elements;
|
||||
|
||||
/** Max number of elements this queue will hold */
|
||||
unsigned int max_elements;
|
||||
/**
|
||||
* Mutex for the queue.
|
||||
*/
|
||||
pthread_mutex_t mutex;
|
||||
pthread_mutex_t mutex;
|
||||
/**
|
||||
* Condition variable for readers on the queue.
|
||||
*/
|
||||
pthread_cond_t read_cond;
|
||||
pthread_cond_t read_cond;
|
||||
/**
|
||||
* Condition variable for writers on the queue (if the queue is full).
|
||||
*/
|
||||
pthread_cond_t write_cond;
|
||||
pthread_cond_t write_cond;
|
||||
/**
|
||||
* Number of threads blocking on writing to the queue
|
||||
*/
|
||||
@@ -128,7 +128,7 @@ struct uc_threadqueue {
|
||||
/**
|
||||
* Internal pointers for the messages in the queue.
|
||||
*/
|
||||
struct uc_threadmsg *first,**last;
|
||||
struct uc_threadmsg *first,**last;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -192,7 +192,7 @@ static inline int uc_thread_queue_add(struct uc_threadqueue *queue, struct uc_th
|
||||
*
|
||||
* struct timespec is defined as:
|
||||
* @code
|
||||
* struct timespec {
|
||||
* struct timespec {
|
||||
* long tv_sec; // seconds
|
||||
* long tv_nsec; // nanoseconds
|
||||
* };
|
||||
|
||||
Reference in New Issue
Block a user