Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49605 - /trunk/storage/libstorage/src/StorageInterface.h
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Sun, 03 Aug 2008 14:36:42 -0000
  • Message-id: <20080803143642.EB2472C14B@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Sun Aug 3 16:36:42 2008
New Revision: 49605

URL: http://svn.opensuse.org/viewcvs/yast?rev=49605&view=rev
Log:
- added documentation

Modified:
trunk/storage/libstorage/src/StorageInterface.h

Modified: trunk/storage/libstorage/src/StorageInterface.h
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/StorageInterface.h?rev=49605&r1=49604&r2=49605&view=diff
==============================================================================
--- trunk/storage/libstorage/src/StorageInterface.h (original)
+++ trunk/storage/libstorage/src/StorageInterface.h Sun Aug 3 16:36:42 2008
@@ -42,6 +42,18 @@
* queried with \link storage::StorageInterface::isCacheChanges()
* isCacheChanges()\endlink.
*
+ * \section Locking
+ *
+ * During initialisation libstorage installs a global lock so that several
+ * programs trying to use libstorage at the same time do not interfere. This
+ * lock is either read-only or read-write depending on the readonly parameter
+ * used in \link storage::StorageInterface::createStorageInterface()
+ * createStorageInterface() \endlink.
+ *
+ * Several processes may hold a read-lock, but only one process may hold a
+ * read-write lock. An read-write lock excludes all other locks, both
+ * read-only and read-write.
+ *
* \section Example
*
* Here is a simple example to demonstrate the usage of libstorage:

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages