Changeset 171
- Timestamp:
- 02/22/06 15:00:08 (3 years ago)
- Files:
-
- eaccelerator/trunk/ChangeLog (modified) (1 diff)
- eaccelerator/trunk/eaccelerator.c (modified) (3 diffs)
- eaccelerator/trunk/eaccelerator.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ChangeLog
r170 r171 1 2006-02-22 Hans Rakers <hans at parse dot nl> 2 3 * Workaround for "multiple definitions of symbol" thread-safe build 4 problem on OSX. This fixes bug #1407520 5 * Renamed mm_mutex to ea_mutex to avoid confusion with eA's memory 6 manager. This was probably a leftover of mmCache times. 7 1 8 2006-02-21 Hans Rakers <hans at parse dot nl> 2 9 eaccelerator/trunk/eaccelerator.c
r168 r171 269 269 if ((eaccelerator_mm_instance = (eaccelerator_mm*)mm_attach(eaccelerator_shm_size*1024*1024, mm_path)) != NULL) { 270 270 #ifdef ZTS 271 mm_mutex = tsrm_mutex_alloc();271 ea_mutex = tsrm_mutex_alloc(); 272 272 #endif 273 273 return SUCCESS; … … 283 283 #endif 284 284 #ifdef ZTS 285 mm_mutex = tsrm_mutex_alloc();285 ea_mutex = tsrm_mutex_alloc(); 286 286 #endif 287 287 total = mm_available(mm); … … 322 322 #endif 323 323 #ifdef ZTS 324 tsrm_mutex_free( mm_mutex);324 tsrm_mutex_free(ea_mutex); 325 325 #endif 326 326 if (mm) { eaccelerator/trunk/eaccelerator.h
r162 r171 127 127 128 128 #ifdef ZTS 129 # define ZTS_LOCK() tsrm_mutex_lock( mm_mutex)130 # define ZTS_UNLOCK() tsrm_mutex_unlock( mm_mutex)129 # define ZTS_LOCK() tsrm_mutex_lock(ea_mutex) 130 # define ZTS_UNLOCK() tsrm_mutex_unlock(ea_mutex) 131 131 #else 132 132 # define ZTS_LOCK() … … 380 380 381 381 #ifdef ZTS 382 MUTEX_T mm_mutex; 382 # ifdef __APPLE__ 383 /* Workaround to prevent 'multiple definitions of symbol' during build on OSX */ 384 static MUTEX_T ea_mutex; 385 # else 386 MUTEX_T ea_mutex; 387 # endif 383 388 #endif 384 389