Subject:
|
whats up with lnp_init?
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Sun, 14 Jul 2002 19:20:33 GMT
|
Viewed:
|
1922 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
i have 2 threads (pthreads), 1 that sends and 1 that recieves on my PC.
both of these runs in while(1) sentences.
so.. i thought lnp_init was to be run only once, but unless i run the
lnp_init routine each time i want to send a message nothing get sent!?
whats up with that ?
anyone have any ideas ??
kenneth johansen
kennethj@stud.cs.uit.no
|
|
Message has 2 Replies: ![](/news/x.gif) | | Re: whats up with lnp_init?
|
| "kenneth johansen" <kennethj@stud.cs.uit.no> wrote in message news:3D31CF01.37F981....uit.no... (...) Kenneth, I'm not sure if I remember correctly, but lnpd as it is right now might not fare so well with reentrant code (i.e. pthreads) because the (...) (22 years ago, 15-Jul-02, to lugnet.robotics.rcx.legos)
| ![](/news/x.gif) | | Re: whats up with lnp_init?
|
| (...) I ran into this when using the LNP library to emulate LNP in the RCX as part of emuLegOS (URL) emuLegOS contains a thread safe wrapper for the LNP library. It should be fairly simple to extract that code into your own library for use in non (...) (22 years ago, 15-Jul-02, to lugnet.robotics.rcx.legos)
|
3 Messages in This Thread: ![You are here](/news/here.gif) ![](/news/246.gif) ![Re: whats up with lnp_init? -Albert Huang (15-Jul-02 to lugnet.robotics.rcx.legos)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: whats up with lnp_init? -Mark Falco (15-Jul-02 to lugnet.robotics.rcx.legos)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|