You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by st...@apache.org on 2001/07/01 15:56:30 UTC
cvs commit: apr/memory/unix apr_sms.c apr_sms_blocks.c apr_sms_std.c apr_sms_tracking.c apr_sms_trivial.c
striker 01/07/01 06:56:30
Modified: memory/unix apr_sms.c apr_sms_blocks.c apr_sms_std.c
apr_sms_tracking.c apr_sms_trivial.c
Log:
Moved the call to apr_sms_assert to within the apr_sms_post_init function.
This will make it more convenient for sms developers.
Added the call to apr_sms_post_init to the 'trivial' sms.
Revision Changes Path
1.28 +2 -0 apr/memory/unix/apr_sms.c
Index: apr_sms.c
===================================================================
RCS file: /home/cvs/apr/memory/unix/apr_sms.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- apr_sms.c 2001/06/29 18:29:42 1.27
+++ apr_sms.c 2001/07/01 13:56:29 1.28
@@ -232,6 +232,8 @@
APR_DECLARE(apr_status_t) apr_sms_post_init(apr_sms_t *sms)
{
+ apr_sms_assert(sms);
+
/* We do things here as these may potentially make calls
* to the sms that we're creating, and if we make the calls
* in the sms_init phase we haven't yet added the function
1.10 +0 -1 apr/memory/unix/apr_sms_blocks.c
Index: apr_sms_blocks.c
===================================================================
RCS file: /home/cvs/apr/memory/unix/apr_sms_blocks.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- apr_sms_blocks.c 2001/06/29 18:29:43 1.9
+++ apr_sms_blocks.c 2001/07/01 13:56:29 1.10
@@ -272,7 +272,6 @@
/* We are normally single threaded so no lock */
- apr_sms_assert(new_sms);
apr_sms_post_init(new_sms);
*sms = new_sms;
1.11 +0 -1 apr/memory/unix/apr_sms_std.c
Index: apr_sms_std.c
===================================================================
RCS file: /home/cvs/apr/memory/unix/apr_sms_std.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- apr_sms_std.c 2001/06/29 18:29:43 1.10
+++ apr_sms_std.c 2001/07/01 13:56:29 1.11
@@ -132,7 +132,6 @@
* apr_sms_destroy functions.
*/
- apr_sms_assert(new_sms);
apr_sms_post_init(new_sms);
*sms = new_sms;
1.16 +0 -1 apr/memory/unix/apr_sms_tracking.c
Index: apr_sms_tracking.c
===================================================================
RCS file: /home/cvs/apr/memory/unix/apr_sms_tracking.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- apr_sms_tracking.c 2001/06/29 18:29:43 1.15
+++ apr_sms_tracking.c 2001/07/01 13:56:29 1.16
@@ -290,7 +290,6 @@
apr_lock_create(&tms->lock, APR_MUTEX, APR_LOCKALL, NULL,
new_sms->pool);
- apr_sms_assert(new_sms);
apr_sms_post_init(new_sms);
*sms = new_sms;
1.3 +1 -1 apr/memory/unix/apr_sms_trivial.c
Index: apr_sms_trivial.c
===================================================================
RCS file: /home/cvs/apr/memory/unix/apr_sms_trivial.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- apr_sms_trivial.c 2001/07/01 12:42:21 1.2
+++ apr_sms_trivial.c 2001/07/01 13:56:30 1.3
@@ -432,7 +432,7 @@
tms->used_sentinel.next = tms->used_sentinel.prev = node;
tms->free_sentinel.next = tms->free_sentinel.prev = &tms->free_sentinel;
- apr_sms_assert(new_sms);
+ apr_sms_post_init(new_sms);
*sms = new_sms;
return APR_SUCCESS;