Changed the name of SDL_mutexP() SDL_mutexV()

This commit is contained in:
Sam Lantinga
2013-03-07 20:12:40 -08:00
parent f08dba6efc
commit 2952d9bf48
17 changed files with 51 additions and 51 deletions

View File

@@ -334,10 +334,10 @@ SDL_AddTimer(Uint32 interval, SDL_TimerCallback callback, void *param)
entry->timer = timer;
entry->timerID = timer->timerID;
SDL_mutexP(data->timermap_lock);
SDL_LockMutex(data->timermap_lock);
entry->next = data->timermap;
data->timermap = entry;
SDL_mutexV(data->timermap_lock);
SDL_UnlockMutex(data->timermap_lock);
/* Add the timer to the pending list for the timer thread */
SDL_AtomicLock(&data->lock);
@@ -359,7 +359,7 @@ SDL_RemoveTimer(SDL_TimerID id)
SDL_bool canceled = SDL_FALSE;
/* Find the timer */
SDL_mutexP(data->timermap_lock);
SDL_LockMutex(data->timermap_lock);
prev = NULL;
for (entry = data->timermap; entry; prev = entry, entry = entry->next) {
if (entry->timerID == id) {
@@ -371,7 +371,7 @@ SDL_RemoveTimer(SDL_TimerID id)
break;
}
}
SDL_mutexV(data->timermap_lock);
SDL_UnlockMutex(data->timermap_lock);
if (entry) {
if (!entry->timer->canceled) {