[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r21442 - gnunet/src/lockmanager
From: |
gnunet |
Subject: |
[GNUnet-SVN] r21442 - gnunet/src/lockmanager |
Date: |
Fri, 11 May 2012 23:50:30 +0200 |
Author: harsha
Date: 2012-05-11 23:50:30 +0200 (Fri, 11 May 2012)
New Revision: 21442
Modified:
gnunet/src/lockmanager/gnunet-service-lockmanager.c
Log:
inlining of helper functions
Modified: gnunet/src/lockmanager/gnunet-service-lockmanager.c
===================================================================
--- gnunet/src/lockmanager/gnunet-service-lockmanager.c 2012-05-11 19:25:57 UTC
(rev 21441)
+++ gnunet/src/lockmanager/gnunet-service-lockmanager.c 2012-05-11 21:50:30 UTC
(rev 21442)
@@ -181,7 +181,7 @@
* @param lock_number
* @param key set to the key
*/
-static void
+static inline void
get_key (const char *domain_name,
uint32_t lock_number,
struct GNUNET_HashCode *key)
@@ -203,7 +203,7 @@
* @param lock_num the number of the lock
* @return the lock if found; NULL if not
*/
-static struct Lock *
+static inline struct Lock *
find_lock (const char *domain_name,
const uint32_t lock_num)
@@ -240,7 +240,7 @@
* @param lock_num the lock number
* @return pointer to the lock structure which is added to lock map
*/
-static struct Lock *
+static inline struct Lock *
add_lock (const char *domain_name,
uint32_t lock_num)
{
@@ -270,7 +270,7 @@
*
* @param lock the lock to remove
*/
-static void
+static inline void
remove_lock (struct Lock *lock)
{
struct GNUNET_HashCode key;
@@ -296,7 +296,7 @@
* @param lock the lock which has to be matched
* @return the matching LockList entry; NULL if no match is found
*/
-static struct LockList *
+static inline struct LockList *
cl_ll_find_lock (struct ClientList *cl_entry,
const struct Lock *lock)
{
@@ -318,7 +318,7 @@
* @param cl_entry the client which currently owns this lock
* @param lock the lock to be added to the cl_entry's lock list
*/
-static void
+static inline void
cl_ll_add_lock (struct ClientList *cl_entry,
struct Lock *lock)
{
@@ -341,7 +341,7 @@
* @param cl_entry the ClientList entry
* @param ll_entry the LockList entry to be deleted
*/
-static void
+static inline void
cl_ll_remove_lock (struct ClientList *cl_entry,
struct LockList *ll_entry)
{
@@ -365,7 +365,7 @@
* @return the WaitList entry matching the given cl_entry; NULL if not match
* was found
*/
-static struct WaitList *
+static inline struct WaitList *
lock_wl_find (const struct Lock *lock,
const struct ClientList *cl_entry)
{
@@ -388,7 +388,7 @@
* @param lock the lock list entry of a lock
* @param cl_entry the client to queue for the lock's wait list
*/
-static void
+static inline void
lock_wl_add_client (struct Lock *lock,
struct ClientList *cl_entry)
{
@@ -412,7 +412,7 @@
* @param lock the lock
* @param wl_entry the wait list entry to be removed
*/
-static void
+static inline void
lock_wl_remove (struct Lock *lock,
struct WaitList *wl_entry)
{
@@ -432,7 +432,7 @@
* @param client the client to be searched for
* @return the ClientList entry; NULL if the client is not found
*/
-static struct ClientList *
+static inline struct ClientList *
cl_find_client (const struct GNUNET_SERVER_Client *client)
{
struct ClientList *current;
@@ -450,7 +450,7 @@
* @param client the client to be appended to the list
* @return the client list entry which is added to the client list
*/
-static struct ClientList *
+static inline struct ClientList *
cl_add_client (struct GNUNET_SERVER_Client *client)
{
struct ClientList *new_client;
@@ -472,7 +472,7 @@
*
* @param cl_entry the client list entry to delete
*/
-static void
+static inline void
cl_remove_client (struct ClientList *cl_entry)
{
LOG (GNUNET_ERROR_TYPE_DEBUG,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r21442 - gnunet/src/lockmanager,
gnunet <=