fork download
  1. #include<pthread.h>
  2.  
  3. typedef pthread_mutex_t __native_type;
  4. #define __GTHREAD_MUTEX_INIT {0}
  5.  
  6. class timed_mutex
  7. {
  8. // ...
  9. __native_type _M_mutex;
  10. public:
  11. timed_mutex() : _M_mutex({__GTHREAD_MUTEX_INIT}) { }
  12. // ...
  13. };
  14.  
  15. int main ()
  16. {
  17. timed_mutex m;
  18. }
Success #stdin #stdout 0s 2824KB
stdin
Standard input is empty
stdout
Standard output is empty