Hi Jack,
On Thu, 2004-03-18 at 09:59, Jack Gundrum wrote:
> Hi,
>
> I am trying to make 08parloading.cpp from the Source/Experimental but
> get the following:
>
> 08parloading.cpp: In function `int main(int, char**)':
> 08parloading.cpp:100: invalid conversion from `void*(*)(void*)' to `void
> (*)(void*)'
> 08parloading.cpp:100: initializing argument 1 of `bool
> osg::PThreadBase::runFunction(void (*)(void*), unsigned int, void*)'
The signature for the function to run changed from the time that example
was written. Change load to look like
void load(void *arg)
{
scene = SceneFileHandler::the().read((char *) arg);
}
and it will work. Note that this is a very simple-minded example for
handling parallel threads, which is why we haven't promoted it to a real
tutorial yet. It does show the main ideas though, so it's a start.
Hope it helps
Dirk
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users