Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. PhProviderThreadStart(providerThread){
  2. while(ThreadRunning){ //mainloop
  3.   lock();
  4.   while(IsEmpty(listEntry)){ 
  5.   // 1. GetEntry
  6. listEntry=RemoveListHead(&providerThread->listEntry);
  7.   // 1–1 Insert Entry for Re-Add 
  8.   InsertTailList(tempList,listEntry);
  9.   release();
  10.   // 2. ProcListEntry
  11.   ProcListEntry(listEntry);
  12.   lock(); 
  13.   }
  14.   // 3. Re-Add Entry
  15.   ReAddListEntry(&providerThread->listEntry,tempList);
  16. release();
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement