<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>

<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I wrote a simple example using xlib (used ffigen), 
and would like to create a new thread to run the main loop (XNextEvent), so 
I can have access to the listener while the X Window program is running in 
another thread. How can I do that? does the NativeThread module (pthreads) 
available?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you for your help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Kind regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Taoufik</FONT></DIV>
<DIV> </DIV></BODY></HTML>