include/SDL_mutex.h
changeset 337 9154ec9ca3d2
parent 297 f6ffac90895c
child 417 04ec6995f75d
     1.1 --- a/include/SDL_mutex.h	Wed Apr 10 17:12:32 2002 +0000
     1.2 +++ b/include/SDL_mutex.h	Thu Apr 11 14:35:16 2002 +0000
     1.3 @@ -60,18 +60,18 @@
     1.4  typedef struct SDL_mutex SDL_mutex;
     1.5  
     1.6  /* Create a mutex, initialized unlocked */
     1.7 -extern DECLSPEC SDL_mutex * SDL_CreateMutex(void);
     1.8 +extern DECLSPEC SDL_mutex * SDLCALL SDL_CreateMutex(void);
     1.9  
    1.10  /* Lock the mutex  (Returns 0, or -1 on error) */
    1.11  #define SDL_LockMutex(m)	SDL_mutexP(m)
    1.12 -extern DECLSPEC int SDL_mutexP(SDL_mutex *mutex);
    1.13 +extern DECLSPEC int SDLCALL SDL_mutexP(SDL_mutex *mutex);
    1.14  
    1.15  /* Unlock the mutex  (Returns 0, or -1 on error) */
    1.16  #define SDL_UnlockMutex(m)	SDL_mutexV(m)
    1.17 -extern DECLSPEC int SDL_mutexV(SDL_mutex *mutex);
    1.18 +extern DECLSPEC int SDLCALL SDL_mutexV(SDL_mutex *mutex);
    1.19  
    1.20  /* Destroy a mutex */
    1.21 -extern DECLSPEC void SDL_DestroyMutex(SDL_mutex *mutex);
    1.22 +extern DECLSPEC void SDLCALL SDL_DestroyMutex(SDL_mutex *mutex);
    1.23  
    1.24  
    1.25  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    1.26 @@ -83,21 +83,21 @@
    1.27  typedef struct SDL_semaphore SDL_sem;
    1.28  
    1.29  /* Create a semaphore, initialized with value, returns NULL on failure. */
    1.30 -extern DECLSPEC SDL_sem * SDL_CreateSemaphore(Uint32 initial_value);
    1.31 +extern DECLSPEC SDL_sem * SDLCALL SDL_CreateSemaphore(Uint32 initial_value);
    1.32  
    1.33  /* Destroy a semaphore */
    1.34 -extern DECLSPEC void SDL_DestroySemaphore(SDL_sem *sem);
    1.35 +extern DECLSPEC void SDLCALL SDL_DestroySemaphore(SDL_sem *sem);
    1.36  
    1.37  /* This function suspends the calling thread until the semaphore pointed 
    1.38   * to by sem has a positive count. It then atomically decreases the semaphore
    1.39   * count.
    1.40   */
    1.41 -extern DECLSPEC int SDL_SemWait(SDL_sem *sem);
    1.42 +extern DECLSPEC int SDLCALL SDL_SemWait(SDL_sem *sem);
    1.43  
    1.44  /* Non-blocking variant of SDL_SemWait(), returns 0 if the wait succeeds,
    1.45     SDL_MUTEX_TIMEDOUT if the wait would block, and -1 on error.
    1.46  */
    1.47 -extern DECLSPEC int SDL_SemTryWait(SDL_sem *sem);
    1.48 +extern DECLSPEC int SDLCALL SDL_SemTryWait(SDL_sem *sem);
    1.49  
    1.50  /* Variant of SDL_SemWait() with a timeout in milliseconds, returns 0 if
    1.51     the wait succeeds, SDL_MUTEX_TIMEDOUT if the wait does not succeed in
    1.52 @@ -105,15 +105,15 @@
    1.53     On some platforms this function is implemented by looping with a delay
    1.54     of 1 ms, and so should be avoided if possible.
    1.55  */
    1.56 -extern DECLSPEC int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 ms);
    1.57 +extern DECLSPEC int SDLCALL SDL_SemWaitTimeout(SDL_sem *sem, Uint32 ms);
    1.58  
    1.59  /* Atomically increases the semaphore's count (not blocking), returns 0,
    1.60     or -1 on error.
    1.61   */
    1.62 -extern DECLSPEC int SDL_SemPost(SDL_sem *sem);
    1.63 +extern DECLSPEC int SDLCALL SDL_SemPost(SDL_sem *sem);
    1.64  
    1.65  /* Returns the current count of the semaphore */
    1.66 -extern DECLSPEC Uint32 SDL_SemValue(SDL_sem *sem);
    1.67 +extern DECLSPEC Uint32 SDLCALL SDL_SemValue(SDL_sem *sem);
    1.68  
    1.69  
    1.70  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    1.71 @@ -125,26 +125,26 @@
    1.72  typedef struct SDL_cond SDL_cond;
    1.73  
    1.74  /* Create a condition variable */
    1.75 -extern DECLSPEC SDL_cond * SDL_CreateCond(void);
    1.76 +extern DECLSPEC SDL_cond * SDLCALL SDL_CreateCond(void);
    1.77  
    1.78  /* Destroy a condition variable */
    1.79 -extern DECLSPEC void SDL_DestroyCond(SDL_cond *cond);
    1.80 +extern DECLSPEC void SDLCALL SDL_DestroyCond(SDL_cond *cond);
    1.81  
    1.82  /* Restart one of the threads that are waiting on the condition variable,
    1.83     returns 0 or -1 on error.
    1.84   */
    1.85 -extern DECLSPEC int SDL_CondSignal(SDL_cond *cond);
    1.86 +extern DECLSPEC int SDLCALL SDL_CondSignal(SDL_cond *cond);
    1.87  
    1.88  /* Restart all threads that are waiting on the condition variable,
    1.89     returns 0 or -1 on error.
    1.90   */
    1.91 -extern DECLSPEC int SDL_CondBroadcast(SDL_cond *cond);
    1.92 +extern DECLSPEC int SDLCALL SDL_CondBroadcast(SDL_cond *cond);
    1.93  
    1.94  /* Wait on the condition variable, unlocking the provided mutex.
    1.95     The mutex must be locked before entering this function!
    1.96     Returns 0 when it is signaled, or -1 on error.
    1.97   */
    1.98 -extern DECLSPEC int SDL_CondWait(SDL_cond *cond, SDL_mutex *mut);
    1.99 +extern DECLSPEC int SDLCALL SDL_CondWait(SDL_cond *cond, SDL_mutex *mut);
   1.100  
   1.101  /* Waits for at most 'ms' milliseconds, and returns 0 if the condition
   1.102     variable is signaled, SDL_MUTEX_TIMEDOUT if the condition is not
   1.103 @@ -152,7 +152,7 @@
   1.104     On some platforms this function is implemented by looping with a delay
   1.105     of 1 ms, and so should be avoided if possible.
   1.106  */
   1.107 -extern DECLSPEC int SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms);
   1.108 +extern DECLSPEC int SDLCALL SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms);
   1.109  
   1.110  /* Ends C function definitions when using C++ */
   1.111  #ifdef __cplusplus