Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PhProviderThreadStart(providerThread){
- while(ThreadRunning){ //mainloop
- lock();
- while(IsEmpty(listEntry)){
- // 1. GetEntry
- listEntry=RemoveListHead(&providerThread->listEntry);
- // 1–1 Insert Entry for Re-Add
- InsertTailList(tempList,listEntry);
- release();
- // 2. ProcListEntry
- ProcListEntry(listEntry);
- lock();
- }
- // 3. Re-Add Entry
- ReAddListEntry(&providerThread->listEntry,tempList);
- release();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement