Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Aug 2004 13:35:24 +0300
From:      Giorgos Keramidas <keramida@linux.gr>
To:        ngl <ngl@ur.ru>
Cc:        current@freebsd.org
Subject:   Re: POSIX Thread's locks failed
Message-ID:  <20040804103524.GB4077@orion.daedalusnetworks.priv>
In-Reply-To: <0ba301c47a11$fa028b80$0202000a@spirit>
References:  <0ba301c47a11$fa028b80$0202000a@spirit>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-08-04 16:58, ngl <ngl@ur.ru> wrote:
>
> 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.

A small program that exhibits the problem when run and a few details
about the way we should run it while trying to reproduce the problem
would be fine, IMHO.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040804103524.GB4077>