[Nfd-dev] thread safety of ndn::face::expressInterest()
Alex Afanasyev
alexander.afanasyev at UCLA.EDU
Wed Jan 21 12:17:36 PST 2015
Hi Shuo,
There shouldn’t be problem expressing interests (or do any other job) with ndn-cxx within multiple threads. However, there is a strong requirement that Face::processEvents (or io_service::run) is called exactly once in some thread (doesn’t really matter which one).
The library will ensure that interests expressed from different threads are properly synchronized/serialized.
—
Alex
> On Jan 21, 2015, at 7:05 AM, Shuo Chen <chenatu2006 at gmail.com> wrote:
>
> Hi everyone,
>
> I was trying to express interests in multi threads. Is ndn::face::expressInterest() thread-safe? Besides, which components of ndn-cxx are thread-safe and which are not?
>
> ----
> Shuo Chen
> Tsinghua University
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20150121/0f087281/attachment.bin>
More information about the Nfd-dev
mailing list