boost::function & threads

I just ran intel's thread checker on a code I am developing using boost::thread and boost::function. It issued some error notifications arising from "function_template.hpp" The following is for boost 1.36.0: Memory read at "function_template.hpp":770 conflicts with a prior memory write at "function_template.hpp":414 (flow dependence) Memory read at "function_template.hpp":288 conflicts with a prior memory write at "function_template.hpp":414 (flow dependence) Memory read at "function_template.hpp":289 conflicts with a prior memory write at "function_template.hpp":414 (flow dependence) I really don't understand the internals of boost::function, so I have no idea whether this is a legitimate error, or if intel's thread checker is confused... James

AMDG James Sutherland wrote:
I just ran intel's thread checker on a code I am developing using boost::thread and boost::function. It issued some error notifications arising from "function_template.hpp"
The following is for boost 1.36.0:
Memory read at "function_template.hpp":770 conflicts with a prior memory write at "function_template.hpp":414 (flow dependence)
Memory read at "function_template.hpp":288 conflicts with a prior memory write at "function_template.hpp":414 (flow dependence)
Memory read at "function_template.hpp":289 conflicts with a prior memory write at "function_template.hpp":414 (flow dependence)
I really don't understand the internals of boost::function, so I have no idea whether this is a legitimate error, or if intel's thread checker is confused...
a) this is a problem b) it is fixed in 1.37 In Christ, Steven Watanabe

The following is for boost 1.36.0:
Memory read at "function_template.hpp":770 conflicts with a prior memory write at "function_template.hpp":414 (flow dependence)
Memory read at "function_template.hpp":288 conflicts with a prior memory write at "function_template.hpp":414 (flow dependence)
Memory read at "function_template.hpp":289 conflicts with a prior memory write at "function_template.hpp":414 (flow dependence)
I really don't understand the internals of boost::function, so I have no idea whether this is a legitimate error, or if intel's thread checker is confused...
a) this is a problem b) it is fixed in 1.37
Thanks. The errors went away in 1.37...
participants (2)
-
James Sutherland
-
Steven Watanabe