Remove decoding thread like in Java common

This commit is contained in:
Cameron Gutman
2014-06-29 00:24:25 -07:00
parent 97710478de
commit 50733f6d7a
6 changed files with 51 additions and 30 deletions
+12 -1
View File
@@ -134,7 +134,7 @@ static void reassembleFrame(int frameNumber) {
}
}
int getNextDecodeUnit(PDECODE_UNIT *du) {
int LiGetNextDecodeUnit(PDECODE_UNIT *du) {
int err = LbqWaitForQueueElement(&decodeUnitQueue, (void**)du);
if (err == LBQ_SUCCESS) {
return 1;
@@ -144,6 +144,17 @@ int getNextDecodeUnit(PDECODE_UNIT *du) {
}
}
int LiPollNextDecodeUnit(PDECODE_UNIT *du) {
int err = LbqPollQueueElement(&decodeUnitQueue, (void**) du);
if (err == LBQ_SUCCESS) {
return 1;
}
else {
LC_ASSERT(err == LBQ_EMPTY);
return 0;
}
}
void freeDecodeUnit(PDECODE_UNIT decodeUnit) {
PLENTRY lastEntry;