#include <signal.h>
//Compile and link with -pthread.
pthread_create()
pthread_join()
pthread_kill()
is the only way to have Multi Tasking by BCC/C.
As I haven't used neither gpp nor Linux ever before:
1) what files have to be copied to the EV3 flash into which directory?
2) where can I find signal.h and in which dir has it to be copied?
3) what different files have to be copied to the current dir on the PC or into the include dir on the PC ?
4) where and how can I induce BCC to compile and link with -pthread ?
It's like shooting a horse while you're still riding it.
= Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
#include <signal.h>
//Compile and link with -pthread.
pthread_create()
pthread_join()
pthread_kill()
...
1) what files have to be copied to the EV3 flash into which directory?
2) where can I find signal.h and in which dir has it to be copied?
3) what different files have to be copied to the current dir on the PC or into the include dir on the PC ?
4) where and how can I induce BCC to compile and link with -pthread ?
#include <signal.h>
//Compile and link with -pthread.
pthread_create()
pthread_join()
pthread_kill()
...
1) what files have to be copied to the EV3 flash into which directory?
2) where can I find signal.h and in which dir has it to be copied?
3) what different files have to be copied to the current dir on the PC or into the include dir on the PC ?
4) where and how can I induce BCC to compile and link with -pthread ?
What the heck are you planning on doing that you need threads for?
that's not important, that's not the topic, just how to implement pthread to BCC.
As I meanwhile was told by Xander in a very intensive private lecture quite a bit shortened):
1) what files have to be copied to the EV3 flash into which directory?
- no -
2) where can I find signal.h and in which dir has it to be copied?
-already there -
3) what different files have to be copied to the current dir on the PC or into the include dir on the PC ?
- nothing -
4) where and how can I induce BCC to compile and link with -pthread ?
so 4) is left...
Last edited by HaWe on 25 Oct 2013, 15:46, edited 1 time in total.