体验新版 GitCode,发现更多精彩内容 >>
#include "pthread_impl.h" int pthread_mutex_init(pthread_mutex_t *m, const pthread_mutexattr_t *a) { memset(m, 0, sizeof *m);
if (a) m->_m_type = *a & 3;
return 0; }