diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-06-20 10:04:36 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-06-20 10:04:36 +0000 |
commit | 39fdec259453511409aa2d3de6f32ff96d9422fd (patch) | |
tree | 17010d808bdef6429d0aea5be9274622215dc638 /src/include/gnunet_lockmanager_service.h | |
parent | 8bd22bae6f169bf30b13c4565cfcf66e0ed45c1c (diff) | |
download | gnunet-39fdec259453511409aa2d3de6f32ff96d9422fd.tar.gz gnunet-39fdec259453511409aa2d3de6f32ff96d9422fd.zip |
-restrictions on using GNUNET_LOCKMANAGER_cancel_request()
Diffstat (limited to 'src/include/gnunet_lockmanager_service.h')
-rw-r--r-- | src/include/gnunet_lockmanager_service.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/gnunet_lockmanager_service.h b/src/include/gnunet_lockmanager_service.h index 570cce565..f0863afdd 100644 --- a/src/include/gnunet_lockmanager_service.h +++ b/src/include/gnunet_lockmanager_service.h | |||
@@ -92,7 +92,9 @@ enum GNUNET_LOCKMANAGER_Status | |||
92 | * @param lock the lock for which this status is relevant | 92 | * @param lock the lock for which this status is relevant |
93 | * | 93 | * |
94 | * @param status GNUNET_LOCKMANAGER_SUCCESS if the lock has been successfully | 94 | * @param status GNUNET_LOCKMANAGER_SUCCESS if the lock has been successfully |
95 | * acquired; GNUNET_LOCKMANAGER_RELEASE when the acquired lock is lost | 95 | * acquired; GNUNET_LOCKMANAGER_RELEASE when the acquired lock is |
96 | * lost. GNUNET_LOCKMANAGER_cancel_request must NOT be called in this | ||
97 | * callback when status == GNUNET_LOCKMANAGER_RELEASE | ||
96 | */ | 98 | */ |
97 | typedef void | 99 | typedef void |
98 | (*GNUNET_LOCKMANAGER_StatusCallback) (void *cls, | 100 | (*GNUNET_LOCKMANAGER_StatusCallback) (void *cls, |
@@ -142,8 +144,8 @@ GNUNET_LOCKMANAGER_acquire_lock (struct GNUNET_LOCKMANAGER_Handle *handle, | |||
142 | 144 | ||
143 | /** | 145 | /** |
144 | * Function to cancel the locking request generated by | 146 | * Function to cancel the locking request generated by |
145 | * GNUNET_LOCKMANAGER_acquire_lock. If the lock is acquired us then the lock is | 147 | * GNUNET_LOCKMANAGER_acquire_lock. If the lock is acquired by us then the lock |
146 | * released. GNUNET_LOCKMANAGER_StatusCallback will not be called upon any | 148 | * is released. GNUNET_LOCKMANAGER_StatusCallback will not be called upon any |
147 | * status changes resulting due to this call. | 149 | * status changes resulting due to this call. |
148 | * | 150 | * |
149 | * @param request the LockingRequest to cancel | 151 | * @param request the LockingRequest to cancel |