From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19826 invoked by alias); 20 May 2003 16:15:37 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 18801 invoked from network); 20 May 2003 16:14:58 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 20 May 2003 16:14:58 -0000 Received: from salvatore3.bol.com.br ([200.221.24.51]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19I8X0-0006yu-VO for gcc-help@gcc.gnu.org; Tue, 20 May 2003 10:55:59 -0400 Received: from bol.com.br (200.221.24.119) by salvatore3.bol.com.br (5.1.071) id 3EB7570B0030A451 for gcc-help@gcc.gnu.org; Tue, 20 May 2003 11:55:06 -0300 Date: Tue, 20 May 2003 16:15:00 -0000 Message-Id: Subject: Deadlock with socket and iostream MIME-Version: 1.0 Content-Type: text/plain;charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable From: "davisonunicamp" To: gcc-help@gcc.gnu.org X-XaM3-API-Version: 2.4 R3 ( B4 ) X-SenderIP: 143.106.50.80 X-SW-Source: 2003-05/txt/msg00158.txt.bz2 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=E7=E3o de Softwares UOL. 10 softwares escolhidos pelo UOL para voc=EA e sua fam=EDlia. http://www.uol.com.br/selecao