Writing a thread-safe library without pulling in pthreads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'd like to write a library which only uses locking if the application
is linked against pthreads.  Is this possible?

(The implementation requires global state, so it's not possible to
expose a thread-safe API explicitly passing objects containing state.)

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux