0
A
回答
0
爲什麼不只是一個空的定義類?
class named_mutex
{
public:
named_mutex(create_only_t, const char *) {}
named_mutex(open_or_create_t, const char *) {}
named_mutex(open_only_t, const char *) {}
~named_mutex() {}
void unlock() {}
void lock() {}
bool try_lock() {}
bool timed_lock(const boost::posix_time::ptime &) {}
static bool remove(const char *) {}
};
使用此實例作爲您的named_mutex
,它就像它從來沒有存在過。
相關問題
- 1. Boost named_mutex和remove()命令
- 2. null實現類型爲boost ::功能
- 3. boost named_mutex私有成員訪問錯誤
- 4. 如何在boost中實現boost :: property_map以及如何更改它
- 5. 如何在boost :: unordered_map中實現TryGetValue?
- 6. boost如何實現信號和插槽?
- 7. 如何爲boost :: tokenizer實現tokenizer.rbegin()和rend()?
- 8. 如何在Boost Spirit中實現const?
- 9. Boost ASIO IO_SERVICE實現?
- 10. boost :: interprocess :: named_mutex是否需要存儲在共享內存中?
- 11. boost Shared_pointer NULL
- 12. boost :: random_device的非Linux實現
- 13. Boost上下文實現
- 14. 基於Boost foreach實現enumerate_foreach
- 15. NULL檢查boost :: scoped_ptr
- 16. ListResourceBundle實現的值爲null
- 17. request-promise實現返回null`
- 18. 什麼是提升interprocess named_mutex在STL
- 19. Boost named_mutex無法在由不同用戶創建的進程之間共享
- 20. boost :: asio如何實現定時數據包發送功能?
- 21. 如何使用boost :: spirit :: lex實現include指令?
- 22. C++ boost:如何實現每個線程的會話
- 23. 如何實現基於POSIX select()的行爲,在boost :: asio
- 24. 我們如何使用boost :: mpl實現Builder設計模式?
- 25. boost如何將類型列表實現爲類的「選項」?
- 26. 如何使用boost :: signals來實現觀察者模式?
- 27. 如何實現一個動態線程Boost :: Barrier?
- 28. 如何使用boost :: asio :: read_some實現超時?
- 29. Boost狀態圖庫 - 如何實現耗時的轉換
- 30. Boost :: Asio聊天示例程序---如何實現私聊
它是如何使用的? – GManNickG 2011-02-13 10:05:45