public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Writing a thread-safe library without pulling in pthreads
@ 2008-07-18 12:56 Florian Weimer
  2008-07-18 15:23 ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Florian Weimer @ 2008-07-18 12:56 UTC (permalink / raw)
  To: gcc-help

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.)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-07-18 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-18 12:56 Writing a thread-safe library without pulling in pthreads Florian Weimer
2008-07-18 15:23 ` Ian Lance Taylor
2008-07-18 16:05   ` Florian Weimer
2008-07-18 20:41     ` Ian Lance Taylor
2008-07-18 21:12       ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).