running C++ function as THREADCONTROL thread

Jayesh Salvi jayeshsalvi at
Wed May 25 06:08:26 CEST 2005


I looked at the pingpong code and found how a thread is created and 
activated using THREADCONTROL system call. It uses C function pointers and 
typecasts them to L4_Word_t which are then passed to threadcontrol system 
call to run this function as thread.

I want to use a C++ function as the thread. But C++ member function pointer 
seem not to be as simple as C function pointers. Their size changes as well, 
with the compiler or compiler-options, because of inheritance. Is their any 
example code that does this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the l4-hackers mailing list