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 / 2177
2176  |  2178
Subject: 
Re: How to make shared memory....not
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 27 Dec 2001 14:10:06 GMT
Viewed: 
4699 times
  
> This appears to be exactly what I'm looking for.  I assume
> if I want to store more values, I can just change the 'shared' struct,
> right? (add l, m, n...)

Yes. That is the only thing you have to do. You can store whatever you want.

> When you say 'multitasking problems', you're talking about storing & reading
> from different threads, right?

Exactly. If you know you what you do, nothing bad can happen.

BTW., this scheme can be extended to something like a shared library. If you
store pointers to functions instead of ints, you can call a routine in
Program 1 from Program 2 or 3.

Bye

Mike



Message has 1 Reply:
  Re: How to make shared memory....not
 
(...) ooohh. I like that idea. So I can write one program with all my functions and my other programs can just include a couple function calls. Again, in my VB world, I don't mess with pointers. When you have a minute, can you type up a sample (...) (25 years ago, 27-Dec-01, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: How to make shared memory....not
 
(...) Thanks, Michael. This appears to be exactly what I'm looking for. I assume if I want to store more values, I can just change the 'shared' struct, right? (add l, m, n...) When you say 'multitasking problems', you're talking about storing & (...) (25 years ago, 27-Dec-01, to lugnet.robotics.rcx.legos)

11 Messages in This Thread:


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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

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