From owner-freebsd-hackers Sun Mar 14 11:11:26 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by hub.freebsd.org (Postfix) with ESMTP id 08A0B15490 for ; Sun, 14 Mar 1999 11:11:21 -0800 (PST) (envelope-from bmilekic@oracle.dsuper.net) Received: from localhost (bmilekic@localhost) by oracle.dsuper.net (Delphi 1.3/8.6.9) with ESMTP id OAA32750; Sun, 14 Mar 1999 14:10:11 -0500 (EST) Date: Sun, 14 Mar 1999 14:10:11 -0500 (EST) From: Bosko Milekic To: FreeBsd Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: thread and socket In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've had a little trouble understanding you... :-) Here's an excerpt from the man page, though... if this isn't what you were looking for, please clarify a bit... --snip-- In the non-threaded library getsockopt() is implemented as the getsockopt syscall. In the threaded library, the getsockopt syscall is assembled to _thread_sys_getsockopt() and getsockopt() is implemented as a function which locks s for read and write, then calls _thread_sys_getsockopt(). Before returning, getsockopt() unlocks s. --snip-- Regards, Bosko. -- Bosko Milekic http://www.supernet.ca/~bmilekic/ Delphi SuperNet voice: (+1) 514 281-7500 fax: (+1) 514 281-6599 PGP Key available upon request. On Sun, 14 Mar 1999, FreeBsd wrote: > Date: Sun, 14 Mar 1999 10:49:36 +0100 (CET) > From: FreeBsd > To: freebsd-hackers@FreeBSD.ORG > Subject: thread and socket > > Hi, > in some small application I use receive socket with > setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); > and recvfrom is waiting and after tv finish with EAGAIN. It is well in no > thread version. In threaded version recvfrom is waiting and waiting and... > without finish (or recevie data well). Is this problem colision on user > timers or some blocking (or other)? How can I secure stop recvfrom from > another thread? > Thanks, > Honza > (version 2.2.8 and 3.1 - It's a same problem) > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message