Basham, Richard R ([EMAIL PROTECTED]) wrote:
> Thanks,
>
> The /usr/include clue did the trick with regard to the re-defined components.
> The last thing that is holding up the compile is that it doesn't like the arguments
> passed to pthread_create. I copied the line from the frank module and substituted
> my thread name for my_thread. I made sure that the thread was defined the same
> way as the thread in frank as well. It says there is a problem with the third
> argument not being a compatible pointer type.
>
> Any suggestions here?
The third argument is the thread body.
Please take a look at examples/hello/hello.c
void *function(void *parameter)
{
return 0;
}
pthread_t thread;
pthread_create(&thread, NULL, function, NULL);
should work. Does it not?
Michael.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/