Hi,
Skriptkid has left the following comment at Integrate new thread affinity
interface into LIBBU and LIBRT
http://www.google-melange.com/gci/task/view/google/gci2012/8070202:
Did not understand.
1. Should I modify parallel.c to something similar to this:
-------------------------------------------------------------------------------------------------------------------
....
....
struct something
{
int (*func_ptr)(void);
data_type arg;
data_type cpuid;
}
....
struct something some_obj;
some_obj.func_ptr = &bu_set_affinity;
.....
pthread_create(..., ..., ¶llel_interface, some_obj)
......
......
---------------------------------------------------------------------------------------------------------------------
2. And then modify parallel_func(void) to:
----------------------------------------------------------------------------------------------------------------------
....
....
parallel_func(struct something some_obj)
{
....
some_obj.(*func_ptr)(void);
....
}
....
....
-----------------------------------------------------------------------------------------------------------------------
(Don't worry about syntax or styling. I just need to get the idea.)
If not, what should I do? I not able to understand your instructions.(My
bad, not blaming you.)
Greetings,
The Google Open Source Programs Team
---
You are receiving this message because you are subscribed to Integrate new
thread affinity interface into LIBBU and LIBRT.
To stop receiving these messages, go to:
http://www.google-melange.com/gci/task/view/google/gci2012/8070202.
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
BRL-CAD Tracker mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-tracker