JBoss Native SVN: r2419 - in trunk/mod_cluster/native: mod_manager and 1 other directories.
by jbossnative-commits@lists.jboss.org
Author: jfrederic.clere(a)jboss.com
Date: 2009-05-04 04:28:03 -0400 (Mon, 04 May 2009)
New Revision: 2419
Modified:
trunk/mod_cluster/native/include/node.h
trunk/mod_cluster/native/include/slotmem.h
trunk/mod_cluster/native/mod_manager/mod_manager.c
trunk/mod_cluster/native/mod_manager/node.c
trunk/mod_cluster/native/mod_slotmem/sharedmem_util.c
Log:
MODCLUSTER-74: Remove the slotmem_lock/slotmem_unlock from the slotmem API.
Modified: trunk/mod_cluster/native/include/node.h
===================================================================
--- trunk/mod_cluster/native/include/node.h 2009-05-04 06:57:05 UTC (rev 2418)
+++ trunk/mod_cluster/native/include/node.h 2009-05-04 08:28:03 UTC (rev 2419)
@@ -120,20 +120,6 @@
*/
apr_status_t remove_node(mem_t *s, nodeinfo_t *node);
-/**
- * Lock the whole the shared table
- * @param pointer to the shared table.
- * @return APR_SUCCESS if all went well
- */
-apr_status_t lock_node(mem_t *s);
-
-/**
- * Unlock the whole the shared table
- * @param pointer to the shared table.
- * @return APR_SUCCESS if all went well
- */
-apr_status_t unlock_node(mem_t *s);
-
/*
* get the ids for the used (not free) nodes in the table
* @param pointer to the shared table.
@@ -205,13 +191,5 @@
* Find the node using the JVMRoute information
*/
apr_status_t (*find_node)(nodeinfo_t **node, const char *route);
-/*
- * Lock the whole node table
- */
-int (*lock_nodes)();
-/*
- * Unlock the whole node table
- */
-int (*unlock_nodes)();
};
#endif /*NODE_H*/
Modified: trunk/mod_cluster/native/include/slotmem.h
===================================================================
--- trunk/mod_cluster/native/include/slotmem.h 2009-05-04 06:57:05 UTC (rev 2418)
+++ trunk/mod_cluster/native/include/slotmem.h 2009-05-04 08:28:03 UTC (rev 2419)
@@ -126,19 +126,6 @@
* @param s ap_slotmem_t to use.
* @return APR_SUCCESS if all went well
*/
-apr_status_t (* ap_slotmem_lock)(ap_slotmem_t *s);
-/**
- * Unlock the slotmem.
- * @param s ap_slotmem_t to use.
- * @return APR_SUCCESS if all went well
- */
-apr_status_t (* ap_slotmem_unlock)(ap_slotmem_t *s);
-/**
- * Return the used id in the slotmem table.
- * @param s ap_slotmem_t to use.
- * @param ids array of int where to store the free idents.
- * @return number of slotmem in use.
- */
int (*ap_slotmem_get_used)(ap_slotmem_t *s, int *ids);
/**
* Return the size of the slotmem table.
Modified: trunk/mod_cluster/native/mod_manager/mod_manager.c
===================================================================
--- trunk/mod_cluster/native/mod_manager/mod_manager.c 2009-05-04 06:57:05 UTC (rev 2418)
+++ trunk/mod_cluster/native/mod_manager/mod_manager.c 2009-05-04 08:28:03 UTC (rev 2419)
@@ -147,14 +147,6 @@
{
return (find_node(nodestatsmem, node, route));
}
-static apr_status_t loc_unlock_node()
-{
- return (unlock_node(nodestatsmem));
-}
-static apr_status_t loc_lock_node()
-{
- return (lock_node(nodestatsmem));
-}
/* Check is the nodes (in shared memory) were modified since last
* call to worker_nodes_are_updated().
@@ -205,8 +197,6 @@
loc_worker_nodes_are_updated,
loc_remove_node,
loc_find_node,
- loc_lock_node,
- loc_unlock_node
};
/*
Modified: trunk/mod_cluster/native/mod_manager/node.c
===================================================================
--- trunk/mod_cluster/native/mod_manager/node.c 2009-05-04 06:57:05 UTC (rev 2418)
+++ trunk/mod_cluster/native/mod_manager/node.c 2009-05-04 08:28:03 UTC (rev 2419)
@@ -213,26 +213,6 @@
return rv;
}
-/**
- * Lock the shared table
- * @param pointer to the shared table.
- * @return APR_SUCCESS if all went well
- */
-apr_status_t lock_node(mem_t *s)
-{
- return (s->storage->ap_slotmem_lock(s->slotmem));
-}
-
-/**
- * Unlock the shared table
- * @param pointer to the shared table.
- * @return APR_SUCCESS if all went well
- */
-apr_status_t unlock_node(mem_t *s)
-{
- return (s->storage->ap_slotmem_unlock(s->slotmem));
-}
-
/*
* get the ids for the used (not free) nodes in the table
* @param pointer to the shared table.
Modified: trunk/mod_cluster/native/mod_slotmem/sharedmem_util.c
===================================================================
--- trunk/mod_cluster/native/mod_slotmem/sharedmem_util.c 2009-05-04 06:57:05 UTC (rev 2418)
+++ trunk/mod_cluster/native/mod_slotmem/sharedmem_util.c 2009-05-04 08:28:03 UTC (rev 2419)
@@ -523,8 +523,6 @@
&ap_slotmem_mem,
&ap_slotmem_alloc,
&ap_slotmem_free,
- &ap_slotmem_lock,
- &ap_slotmem_unlock,
&ap_slotmem_get_used,
&ap_slotmem_get_max_size
};