All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Eric Leblond <eric@inl.fr>
Cc: Jacky Luk <jacky.luk@primecreation.com>,
	netfilter@vger.kernel.org, netfilter-devel@vger.kernel.org
Subject: Re: Is the libnetfilter_queue thread-safe?
Date: Mon, 26 Jan 2009 14:21:57 +0100	[thread overview]
Message-ID: <497DB8F5.80600@trash.net> (raw)
In-Reply-To: <1232696125.22893.5.camel@ice-age>

Eric Leblond wrote:
> Hi,
> 
> Le vendredi 23 janvier 2009 à 12:02 +0800, Jacky Luk a écrit :
>> Hi,
>>
>> I would like to ask a question about the 
>> libnetfilter_queue. Is the libnetfilter_queue thread-safe? 
> 
> Is had yet to be decide :/ From my experience on NuFW, you can use it
> with multithreaded programs and you can have a reading thread and a
> writing thread working together on the same queue.

I think it should be as long as you don't change anything related
to the handle while using it. The remaining parts are merely a
stateless communication mechanism, there's no reason why they
shouldn't be thread-safe.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2009-01-26 13:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-23  4:02 Is the libnetfilter_queue thread-safe? Jacky Luk
2009-01-23  7:35 ` Eric Leblond
2009-01-26 13:21   ` Patrick McHardy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=497DB8F5.80600@trash.net \
    --to=kaber@trash.net \
    --cc=eric@inl.fr \
    --cc=jacky.luk@primecreation.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.