|
From: Felix S. <fel...@we...> - 2008-10-31 13:21:16
|
There is an internal possibility to yield a thread the header pub_core_scheduler.h defines a function called VG_(vg_yield) but i do not find a possibility to include this function to my tool my approach to this problem is: 1) defining a wrapper function maybe in pub_tool_threadstate.h (VG_(yield_thread)) 2) in coregrind/m_threadstate.h i will include pub_core_scheduler.h and implement the function defined in step one 3) the implementation of function (defined in 1) is simple, you have to call VG_(vg_yield)(); what du you think about this approach? fs |