From owner-freebsd-hackers Wed Jan 16 15:50: 9 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtpzilla1.xs4all.nl (smtpzilla1.xs4all.nl [194.109.127.137]) by hub.freebsd.org (Postfix) with ESMTP id E345137B404 for ; Wed, 16 Jan 2002 15:50:03 -0800 (PST) Received: from tamama (12345678.xs4all.nl [213.84.116.228]) by smtpzilla1.xs4all.nl (8.12.0/8.12.0) with SMTP id g0GNo1im029638 for ; Thu, 17 Jan 2002 00:50:02 +0100 (CET) Message-ID: <010201c19ee8$b7b68d00$9600000a@tamama> From: "Floris 'Tamama' van Gog" To: Subject: kevent() in another thread Date: Thu, 17 Jan 2002 00:51:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have made a small servent (client + server) that uses kqueue()/kevent(). This works like a charm. However now I want to connect from another thread to a server, and add a kevent on the socket. I read that kevent/kqueue weren't very thread-safe. Is this safely possible, or would I need to make some sort of 'wake up' kevent to break out of kevent() and then add the new kevent() in? Any input is greatly appreciated. Floris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message