Go to the documentation of this file. 63 #define DO_PTHREAD_BARRIER(x) \ 65 if(res && res != PTHREAD_BARRIER_SERIAL_THREAD) { \ 66 std::stringstream S; \ 67 S << "Unexpected result from " << #x << " " << res << " "; \ 69 (void) strerror_r(res, &buf[0], sizeof(buf)); \ 71 W_FATAL_MSG(fcINTERNAL, << S.str()); \ 74 #define DO_PTHREAD(x) \ 77 std::stringstream S; \ 78 S << "Unexpected result from " << #x << " " << res << " "; \ 81 xxrs = (void *) strerror_r(res, &buf[0], sizeof(buf)); \ 84 W_FATAL_MSG(fcINTERNAL, << S.str()); \ 87 #define DO_PTHREAD_TIMED(x) \ 89 if(res && res != ETIMEDOUT) { \ 90 W_FATAL_MSG(fcINTERNAL, \ 91 <<"Unexpected result from " << #x << " " << res); \ 95 #endif // __W_PTHREAD_H