From owner-freebsd-current@FreeBSD.ORG Wed Aug 4 10:58:33 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B116116A4CE for ; Wed, 4 Aug 2004 10:58:33 +0000 (GMT) Received: from d162.mplik.ru (relay1.mplik.ru [212.23.64.162]) by mx1.FreeBSD.org (Postfix) with SMTP id 56EA743D67 for ; Wed, 4 Aug 2004 10:58:32 +0000 (GMT) (envelope-from ngl@ur.ru) Received: from d162.mplik.ru (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 11C97998644 for ; Wed, 4 Aug 2004 16:58:30 +0600 (YEKST) Received: from spirit (wall.mplik.ru [195.58.1.141]) by d162.mplik.ru (Postfix) with SMTP id E8FA9961457 for ; Wed, 4 Aug 2004 16:58:29 +0600 (YEKST) Message-ID: <0ba301c47a11$fa028b80$0202000a@spirit> From: "ngl" To: Date: Wed, 4 Aug 2004 16:58:29 +0600 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3790.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 X-Spam-Status: No, tests=bogofilter, spamicity=0.739159, version=0.12.3 X-Sagator-Scanner: 0.4.9-0rc1; drop(clamd()) deliver(BogoFilter()) Subject: POSIX Thread's locks failed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 10:58:33 -0000 Hello all. Sorry for my english. I use libpcap and libc_r under FreeBSD 5.2.1-p9, and i has faced a problem, that sometimes pthread_mutex doesn't work properly. I'm getting packets from bpf with pcap_next function in one thread and processing them in another. Both threads are using the same pthread_mutex to synchronize. Everything works perfectly, but sometimes i get errors could arise only if synchronization failed. regards, Nik