• R/O
  • HTTP
  • SSH
  • HTTPS

libcore: Commit

GikoMonaのソフトウェアの基幹部分を集めて1つのライブラリに集約したものです。gikomona/pnutsのコンパイルにはこのライブラリが必須です。


Commit MetaInfo

Revision0ed7904ca6736a440dc8a7c3046d55130f929788 (tree)
Time2014-08-10 01:32:07
Authorcaprice <caprice@user...>
Commitercaprice

Log Message

mutexの名前をまとめた

Change Summary

Incremental Difference

--- a/include/reference-counter.hpp
+++ b/include/reference-counter.hpp
@@ -14,12 +14,11 @@ public:
1414
1515 reference_counter() : counter(0) {
1616 mutex = boost::interprocess::
17- named_mutex(boost::interprocess::create_only,
18- "monazilla.GikoMona.shared-memory.mutex");
17+ named_mutex(boost::interprocess::create_only, shared_mutex_name);
1918 }
2019
2120 ~reference_counter() {
22- named_mutex::remove("monazilla.GikoMona.shared-memory.mutex");
21+ named_mutex::remove(shared_mutex_name);
2322 }
2423
2524 self_type& operator++() { ++counter; return *this; }
@@ -41,6 +40,7 @@ public:
4140
4241 private:
4342 int counter;
43+ static const char *shared_mutex_name = "org.monazilla.GikoMona.shared-memory.mutex";
4444 boost::interprocess::named_mutex mutex;
4545 };
4646
Show on old repository browser