 | | Re: thread class for legOS
|
|
(...) Static DOES matter; it declares the method as being a "class" method, rather than a normal instance method. I believe there is no implicit 'this' parameter and therefore it can be treated like a normal function. Of course, it can't be linked (...) (24 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
|
|
 | | Re: Senshist.icb etc
|
|
hi john, the farnsworth stuff should work. did you download the zip file of programs from the HB site? there should be an as11_ic bat file in it. fred (...) (24 years ago, 20-Jan-02, to lugnet.robotics.handyboard)
|
|
 | | Re: thread class for legOS
|
|
(...) No, static doesn't matter but it is possible the calling conventions of C and C++ might be different (I don't know of a platform where that is the case for a an extern function), so you might need to specify C linkage, as in: extern "C" int (...) (24 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
|
|
 | | Re: thread class for legOS
|
|
(...) Haven't done any C++ for a while, but IIRC you just need to declare runWrapper as static, ie: private: static int runWrapper(...) ; HTH ROSCO (24 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
|
|
 | | Re: threads - bug in the firmware?
|
|
(...) Advantage: Less memory used (each thread needs a block of memory in the kernel, I'm at work & can't remember the struct name off hand). In the case under discussion, this doesn't make much difference, but in a large project, memory use can (...) (24 years ago, 21-Jan-02, to lugnet.robotics.rcx.legos)
|