Ignore:
Timestamp:
2013-09-09T18:16:05+02:00 (12 months ago)
Author:
moo
Message:

fixes #323: refix locking impl for threaded env

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/xcache/xc_mutex.h

    r1363 r1366  
    1 #ifndef XC_LOCK_H_1913F3DED68715D7CDA5A055E79FE0FF 
    2 #define XC_LOCK_H_1913F3DED68715D7CDA5A055E79FE0FF 
     1#ifndef XC_MUTEX_H_1913F3DED68715D7CDA5A055E79FE0FF 
     2#define XC_MUTEX_H_1913F3DED68715D7CDA5A055E79FE0FF 
    33 
    44#if _MSC_VER > 1000 
     
    88#include <stdlib.h> 
    99 
    10 typedef struct _xc_lock_t xc_lock_t; 
     10typedef struct _xc_mutex_t xc_mutex_t; 
    1111 
    12 size_t xc_lock_size(void); 
    13 xc_lock_t *xc_lock_init(xc_lock_t *lck, const char *pathname, unsigned char interprocess /* only with ZTS */); 
    14 void xc_lock_destroy(xc_lock_t *lck); 
    15 void xc_lock(xc_lock_t *lck); 
    16 void xc_unlock(xc_lock_t *lck); 
     12size_t xc_mutex_size(void); 
     13xc_mutex_t *xc_mutex_init(xc_mutex_t *shared_mutex, const char *pathname, unsigned char want_inter_process); 
     14void xc_mutex_destroy(xc_mutex_t *mutex); 
     15void xc_mutex_lock(xc_mutex_t *mutex); 
     16void xc_mutex_unlock(xc_mutex_t *mutex); 
    1717 
    18 #endif /* XC_LOCK_H_1913F3DED68715D7CDA5A055E79FE0FF */ 
     18#endif /* XC_MUTEX_H_1913F3DED68715D7CDA5A055E79FE0FF */ 
Note: See TracChangeset for help on using the changeset viewer.