Rename uc_thread_queue_get to uc_thread_queue_tryget, introduce

uc_thread_queue_get macro
This commit is contained in:
Nils O. Selåsdal
2013-01-01 21:13:29 +01:00
parent 1b5645ae47
commit dbe91d2d13
3 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ int uc_thread_queue_add(struct uc_threadqueue *queue, struct uc_threadmsg *msg)
}
int uc_thread_queue_get(struct uc_threadqueue *queue, const struct timespec *timeout, struct uc_threadmsg **msg)
int uc_thread_queue_tryget(struct uc_threadqueue *queue, const struct timespec *timeout, struct uc_threadmsg **msg)
{
int rc = 0;
struct timespec abstimeout;