News for hackers. Stuff that matters.
Re:Show HN: Chan – pure C implementation of Go channels by eps on Friday August 29, 2014 @07:28PM (#8244994)
You don't need to allocate pthread_mutex_t instances on heap, you can include them into the struct directly -

  struct foo
  {
     pthread_mutex_t bar;
     ...
  };
Re:Show HN: Chan – pure C implementation of Go channels by tylertreat on Friday August 29, 2014 @07:36PM (#8245028)
Got it, that makes more sense.