Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Task Spawn in vxworks

352 views
Skip to first unread message

divine...@gmail.com

unread,
Nov 1, 2013, 5:23:55 AM11/1/13
to
hi, everyone
I am getting an error repeatedly while spawning a task,
Iam using:
char * name="tTask";
taskSpawn(name,102,0,1000,(FUNCPTR)TaskTest::TaskGet,TRUE,0,0,0,0,0,0,0,0,0);

and Iam getting the error:
non standard form for getting the address of a member function in 2nd and 3rd argument.

TW Burger

unread,
Nov 8, 2013, 2:08:03 PM11/8/13
to
It has to be TaskTest::TaskGet does not return a FUNCPTR which is defined
in vxworks.h as

typedef void (*FUNCPTR)(long, long, long, long, long, long, long, long,
long, long);

address of a function with 10 args and a void return
--
Using Opera's mail client: http://www.opera.com/mail/

Tom Burger

unread,
Nov 10, 2013, 1:11:39 PM11/10/13
to
Wait, I didn't pay attention. Should it not be:

taskSpawn(name,102,0,1000,(FUNCPTR)TaskTest::TaskGet(),TRUE,0,0,0,0,0,0,0,0,0);

where TaskTest::TaskGet() returns the pointer to the function to spawn?

Also 2nd and 3rd arg of what ::TaskGet()?
0 new messages