Deadlock with socket and iostream

Ajay Bansal Ajay_Bansal@infosys.com
Wed May 21 05:33:00 GMT 2003


Can you please post the test progrem? 


-----Original Message-----
From: davisonunicamp [mailto:davisonunicamp@bol.com.br] 
Sent: Tuesday, May 20, 2003 8:25 PM
To: gcc-help@gcc.gnu.org

Hi, I have a problem with threads, sockets and iostream. In my program, I call one thread with cin and cout. Later, I call another one trhead with an operation with sockets(connect, write, accept and read). Finally, I call one thread that cout calls one and one cin. Then the program stops.  
I'm using the following options: 
-D_RWSTD_MULTI_THREAD -D_REENTRANT -D_THREAD_SAFE. 
gcc-3.2.2 
libstdc++-v3
I need a help to solve this problem. 
 
Davison. 
 
 
  
  

 
__________________________________________________________________________
Seleção de Softwares UOL.
10 softwares escolhidos pelo UOL para você e sua família.
http://www.uol.com.br/selecao





More information about the Gcc-help mailing list