diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-04-25 10:02:51 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-04-25 10:02:51 +0000 |
commit | 9c4f5c8f1b481103f871c20bb568ff7d1911cb10 (patch) | |
tree | 8693254f333fac83b894c73efa161534d2fdcac3 /src/lockmanager | |
parent | 0b9d917f4c291daae72b20c61b1dbbefe6ea1ce3 (diff) | |
download | gnunet-9c4f5c8f1b481103f871c20bb568ff7d1911cb10.tar.gz gnunet-9c4f5c8f1b481103f871c20bb568ff7d1911cb10.zip |
-added interface for lockmanager
Diffstat (limited to 'src/lockmanager')
-rw-r--r-- | src/lockmanager/README | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lockmanager/README b/src/lockmanager/README new file mode 100644 index 000000000..ef38e990c --- /dev/null +++ b/src/lockmanager/README | |||
@@ -0,0 +1,10 @@ | |||
1 | The lockmanager service serves as a global locker for other gnunet | ||
2 | programs. This service eliminates the need for programs to maintain their own | ||
3 | checks upon a resource which should be protected from concurrent access. | ||
4 | |||
5 | Locking is managed through locking-domains. A locking-domain is a string which | ||
6 | uniquely identifies a group of locks. Locks are represented as unsigned | ||
7 | integers. When a critical resource has to be protected against simulataneous | ||
8 | access by 2 programs. Both of them should connect to the lockmanager using the | ||
9 | same locking-domain and try to lock a lock. Since only one of them can acquire | ||
10 | the lock the other will be denied locking until the other releases it. \ No newline at end of file | ||