struct chan_t { pthread_mutex_t* m_mu;... }
pthread_mutex_t* mu = (pthread_mutex_t*) malloc(sizeof(pthread_mutex_t)); pthread_mutex_init(mu, NULL); chan->m_mu = mu;
struct chan_t { pthread_mutex_t m_mu;... }
pthread_mutex_init(&chan->m_mu, NULL); chan->m_mu = mu;