- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
Can a class have a static mutex member? Is this code OK?
renorm.
Can a class have a static mutex member? Is this code OK?
[cpp]// in some header file struct A { static tbb::mutex mut; }; // in some implementation file tbb::mutex A::mut;[/cpp]Thank you,
renorm.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting renorm
Can a class have a static mutex member? Is this code OK?
Yes. Nothing special about mutexes in this respect.
![](/skins/images/872293744008A34B36F8ABF94A46CC66/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page