Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-22 14:06:57 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-01-22 14:06:57 +0300
commit2d2339a70992b819a23e8c71f68027022b395f46 (patch)
tree747707ad2e7660e95e67b9c417feb5a619685072 /source/blender/blenlib/BLI_gsqueue.h
parentcbc4aae06a9b3878b0af68884a75b953e3c8612b (diff)
Threads: added queue for passing data between threads. Includes a function
to wait for an item to be put in the queue and then pop immediately without, this makes it possible to avoid sleep() while waiting for the results of a thread.
Diffstat (limited to 'source/blender/blenlib/BLI_gsqueue.h')
-rw-r--r--source/blender/blenlib/BLI_gsqueue.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_gsqueue.h b/source/blender/blenlib/BLI_gsqueue.h
index 16157ebe0a8..29b15bcf55a 100644
--- a/source/blender/blenlib/BLI_gsqueue.h
+++ b/source/blender/blenlib/BLI_gsqueue.h
@@ -49,6 +49,11 @@ GSQueue* BLI_gsqueue_new (int elem_size);
int BLI_gsqueue_is_empty(GSQueue *gq);
/**
+ * Query number elements in the queue
+ */
+int BLI_gsqueue_size(GSQueue *gq);
+
+ /**
* Access the item at the head of the queue
* without removing it.
*