Thread-safety of X11-app

Thread-safety of X11-app

Post by RA Scheltem » Fri, 18 May 2001 21:30:16



hi there,

can anybody out there explain to me (or point me to some explanation
on), how I can make my X11-app thread-safe? My app is based only upon
X11-lib (no in between lib) and posix threads.

Thanks ahead,
Richard

 
 
 

Thread-safety of X11-app

Post by M?ns Rullg? » Fri, 18 May 2001 22:28:10



> hi there,

> can anybody out there explain to me (or point me to some explanation
> on), how I can make my X11-app thread-safe? My app is based only upon
> X11-lib (no in between lib) and posix threads.

> Thanks ahead,
> Richard

Call XInitThreads() before any other XLib call.

--
M?ns Rullg?rd


 
 
 

1. glibc2: reentrancy, thread-safety, signal-safety

I have heard that glibc2 is close to thread-safe. Does anyone know how
thread thread safety is implemented. Does thread-safety mean signal-safety
that is: I can use --say-- malloc() both in the main process-flow code and
in signal handlers. I suppose it would fairly simply to enforce
thread-safety by using library owned mutexes or critical sections. But this
would preclude signal safety because of potential deadlocks.

By the same token, does anyone know how reentrancy relates to thread-safety
and signal-safety.

Thanks.

Peter

2. UNIX training sources - help

3. LinuxThreads and thread-safety, re-entrancy, async-safety!

4. How to find which process is using one file system?

5. Linux libraries and thread-safety!!!

6. newfs inode error

7. A question on thread-safety

8. netatalk questions

9. atomicity / thread-safety: PF_PACKET socket and tap file descriptor

10. How to check thread-safety of code on routine usage

11. Thread safety confusion Pl help

12. STL thread safety ?

13. Sockets and Thread Safety