inline void BOOST_REGEX_CALL LeaveCriticalSection(CRITICAL_SECTION* ps) { status_t t = release_sem(*ps); assert(t == B_NO_ERROR); }