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 / 3605
3604  |  3606
Subject: 
Re: The BrickOS Task Manager
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 5 Jan 2004 01:45:29 GMT
Viewed: 
3828 times
  
In lugnet.robotics.rcx.legos, Michael Purvis wrote:
In lugnet.robotics.rcx.legos, Bapt Denaeyer wrote:
pid_t my_thread;
Hmm... it doesn't seem to recognize pid_t as a valid type. I have a document of
the functions in brickOS that indicates execi returning an int. Which is it?

I think that's all you need to know ;-)
Still confused... I'll post the poignant code:

pid_t rowthread;
pid_t colthread;

[snip]

This isn't the exact example I gave above, but it's something I thought I'd try
as an experiment. The idea was that the two tasks would initialize and
independently move two axis of a grid scanner... once they were both complete,
the two global flags would register with the initial procedure. I included tm.c,
but as I said, it's not registering pid_t as a type. And changing it to int
gives a whole slew of type errors on the execi lines. ??

Hi Mike,

What version of BrickOS are you using? IIRC the correct type for thread IDs in
the current version is tid_t, not pid_t.

Also, I dunno if it was a typo, but you should include tm.h, not tm.c.

HTH

ROSCO



Message is in Reply To:
  Re: The BrickOS Task Manager
 
(...) Hmm... it doesn't seem to recognize pid_t as a valid type. I have a document of the functions in brickOS that indicates execi returning an int. Which is it? (...) Still confused... I'll post the poignant code: pid_t rowthread; pid_t colthread; (...) (21 years ago, 5-Jan-04, to lugnet.robotics.rcx.legos)

15 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