running C++ function as THREADCONTROL thread

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


Hi,

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?

Thanks.
-- 
Jayesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20050524/57349a56/attachment.html>


More information about the l4-hackers mailing list