src/thread/pthread/SDL_syssem.c
branchgsoc2008_nds
changeset 2669 e27bdcc80744
parent 1895 c121d94672cb
child 2765 f55c87ae336b
equal deleted inserted replaced
2668:bb3241de289e 2669:e27bdcc80744
   123         retval = SDL_SemTryWait(sem);
   123         retval = SDL_SemTryWait(sem);
   124         if (retval == 0) {
   124         if (retval == 0) {
   125             break;
   125             break;
   126         }
   126         }
   127         SDL_Delay(1);
   127         SDL_Delay(1);
   128     }
   128     } while (SDL_GetTicks() < timeout);
   129     while (SDL_GetTicks() < timeout);
       
   130 
   129 
   131     return retval;
   130     return retval;
   132 }
   131 }
   133 
   132 
   134 Uint32
   133 Uint32