aboutsummaryrefslogtreecommitdiff
path: root/src/lockmanager
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-04-25 10:02:51 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-04-25 10:02:51 +0000
commit9c4f5c8f1b481103f871c20bb568ff7d1911cb10 (patch)
tree8693254f333fac83b894c73efa161534d2fdcac3 /src/lockmanager
parent0b9d917f4c291daae72b20c61b1dbbefe6ea1ce3 (diff)
downloadgnunet-9c4f5c8f1b481103f871c20bb568ff7d1911cb10.tar.gz
gnunet-9c4f5c8f1b481103f871c20bb568ff7d1911cb10.zip
-added interface for lockmanager
Diffstat (limited to 'src/lockmanager')
-rw-r--r--src/lockmanager/README10
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 @@
1The lockmanager service serves as a global locker for other gnunet
2programs. This service eliminates the need for programs to maintain their own
3checks upon a resource which should be protected from concurrent access.
4
5Locking is managed through locking-domains. A locking-domain is a string which
6uniquely identifies a group of locks. Locks are represented as unsigned
7integers. When a critical resource has to be protected against simulataneous
8access by 2 programs. Both of them should connect to the lockmanager using the
9same locking-domain and try to lock a lock. Since only one of them can acquire
10the lock the other will be denied locking until the other releases it. \ No newline at end of file