- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not sure but I think does this means I have to define the spin_mutex class or am I not using the class correctly. If I have to define the spin_mutex class what class method and object properties should I also define.
I would appreciate any help on this subject
thank you in advance
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is difficult to reproduce the problem from such a brief description; a piece of source code would be helpful, probably...
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the code
tbb::spin_mutex m;
m.lock();
m_objDB.GetApertureTable()->CheckAndSetUndefined(&m_objDB,
true);true);
m.unlock();
Based on the the description of the problem I think the the mutex class are not defined in the tbb_debug.dll that I am using. If this is true that where would I find the definition for this class
I am using visual c++ 2008 and the point of this code is to allow one threaded task to access apiece of critical code one at a time. IfIam trying to createa tbb::spin_mutexobject to lock this code is to lock code in a method. is the problem in the code or in the project setting?
Thank you again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My guess is that something is messed in your project setup, such as e.g. 32- vs. 64-bit TBB DLLs. Definitely the reported symbol should exist in the 32-bit DLL; I checked our DEF files and it's there. Needless to say that the library is tested extensively in a variety of configuration, and if the symbol was really missed we would see it in tests.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you in advance for the answer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
One particular way and convenient way is to use TBB integration plug-infor MSVS that you find in http://threadingbuildingblocks.org > Downloads > Extras. It has some usage limitations though; in particular, there are known issues with localized versions of VS. The latest available version does not support TBB 3.0; if necessary you can add a 3.0 configuration as described in the README for the plug-in, or wait for an update (to be released soon).

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page