To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2728
2727  |  2729
Subject: 
whats up with lnp_init?
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sun, 14 Jul 2002 19:20:33 GMT
Viewed: 
2173 times
  
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:
  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)
  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:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR