Date: Sun, 14 Mar 1999 14:10:11 -0500 (EST) From: Bosko Milekic <bmilekic@oracle.dsuper.net> To: FreeBsd <bsd@obr.software602.cz> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: thread and socket Message-ID: <Pine.OSF.4.05.9903141407280.14588-100000@oracle.dsuper.net> In-Reply-To: <Pine.BSF.4.05.9903140953180.4831-100000@obr.software602.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <bmilekic@supernet.ca> 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 <bsd@obr.software602.cz> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.05.9903141407280.14588-100000>