| 299 | int (*PlatformSpecificAtExit)(void(*func)(void)) = atexit; /// this was undefined before |
| 300 | |
| 301 | static PlatformSpecificMutex PThreadMutexCreate(void) |
| 302 | { |
| 303 | #ifdef CPPUTEST_HAVE_PTHREAD_MUTEX_LOCK |
| 304 | pthread_mutex_t *mutex = new pthread_mutex_t; |
| 305 | |
| 306 | pthread_mutex_init(mutex, NULLPTR); |
| 307 | return (PlatformSpecificMutex)mutex; |
| 308 | #else |
| 309 | return NULLPTR; |
| 310 | #endif |
| 311 | |
| 312 | } |
| 313 | |
| 314 | #ifdef CPPUTEST_HAVE_PTHREAD_MUTEX_LOCK |
| 315 | static void PThreadMutexLock(PlatformSpecificMutex mtx) |
nothing calls this directly
no outgoing calls
no test coverage detected