Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
frameworks_wilhelm
Commits
d4b099b8
Commit
d4b099b8
authored
14 years ago
by
Glenn Kasten
Browse files
Options
Download
Email Patches
Plain Diff
Update the rear pointer when enqueuing a closure.
Change-Id: Ibc800b5384adbaa45b9d7418bc8e7be6df8f5bb6
parent
4b65ef9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
libopensles/ThreadPool.c
libopensles/ThreadPool.c
+1
-0
No files found.
libopensles/ThreadPool.c
View file @
d4b099b8
...
...
@@ -250,6 +250,7 @@ SLresult ThreadPool_add(ThreadPool *tp, void (*handler)(void *, int), void *cont
}
assert
(
NULL
==
*
oldRear
);
*
oldRear
=
closure
;
tp
->
mClosureRear
=
newRear
;
// if a worker thread was waiting to dequeue, then suggest that it try again
if
(
0
<
tp
->
mWaitingNotEmpty
)
{
--
tp
->
mWaitingNotEmpty
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment