diff options
author | Jeff Trawick <trawick@apache.org> | 2003-11-16 02:51:28 +0100 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2003-11-16 02:51:28 +0100 |
commit | c9eb9be4745bf47e01fa65a672235f21844742b7 (patch) | |
tree | cbcb2442be0f18009488dcb6b00c5058e2ebff2e /server/mpm/winnt | |
parent | fix the EBCDIC path in send_all_header_fields() to actually return something (diff) | |
download | apache2-c9eb9be4745bf47e01fa65a672235f21844742b7.tar.xz apache2-c9eb9be4745bf47e01fa65a672235f21844742b7.zip |
stop using deprecated apr_atomic functions
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101786 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/mpm/winnt')
-rw-r--r-- | server/mpm/winnt/child.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/mpm/winnt/child.c b/server/mpm/winnt/child.c index 841fa8bc75..f1034f6c94 100644 --- a/server/mpm/winnt/child.c +++ b/server/mpm/winnt/child.c @@ -206,7 +206,7 @@ AP_DECLARE(PCOMP_CONTEXT) mpm_get_completion_context(void) context->accept_socket = INVALID_SOCKET; context->ba = apr_bucket_alloc_create(pchild); - apr_atomic_inc(&num_completion_contexts); + apr_atomic_inc32(&num_completion_contexts); break; } } else { @@ -671,10 +671,10 @@ static PCOMP_CONTEXT winnt_get_connection(PCOMP_CONTEXT context) mpm_recycle_completion_context(context); - apr_atomic_inc(&g_blocked_threads); + apr_atomic_inc32(&g_blocked_threads); while (1) { if (workers_may_exit) { - apr_atomic_dec(&g_blocked_threads); + apr_atomic_dec32(&g_blocked_threads); return NULL; } rc = GetQueuedCompletionStatus(ThreadDispatchIOCP, &BytesRead, &CompKey, @@ -691,15 +691,15 @@ static PCOMP_CONTEXT winnt_get_connection(PCOMP_CONTEXT context) context = CONTAINING_RECORD(pol, COMP_CONTEXT, Overlapped); break; case IOCP_SHUTDOWN: - apr_atomic_dec(&g_blocked_threads); + apr_atomic_dec32(&g_blocked_threads); return NULL; default: - apr_atomic_dec(&g_blocked_threads); + apr_atomic_dec32(&g_blocked_threads); return NULL; } break; } - apr_atomic_dec(&g_blocked_threads); + apr_atomic_dec32(&g_blocked_threads); return context; } |