What sync primitives can I use with clone(2) (C/C++)? -



What sync primitives can I use with clone(2) (C/C++)? -

what c++ synchronization primitives can utilize when using linux's clone(2) threads? cannot utilize pthreads because i'm building shared library replaces many of pthreads's function calls different definitions, i'm in need of mutex of sort.

edit: might have spoke soon, looked @ pthread docs , utilize futex(2) implement these primitives. i'm assuming how this, too?

you can utilize futex http://en.wikipedia.org/wiki/futex

here simple mutex , cond var based on futex http://locklessinc.com/articles/mutex_cv_futex/

c++ c linux multithreading

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -