diff options
author | damitha | 2010-07-07 08:54:06 +0000 |
---|---|---|
committer | damitha | 2010-07-07 08:54:06 +0000 |
commit | 3d9eba890119a9eb9544f58bf2e0bf67c9c0aeeb (patch) | |
tree | e73eca985053e756866612f7f5145bcbfd5f1c36 /util | |
parent | cca199fb8f3d610c9881444732ca4375c093fa90 (diff) | |
download | axis2c-3d9eba890119a9eb9544f58bf2e0bf67c9c0aeeb.tar.gz axis2c-3d9eba890119a9eb9544f58bf2e0bf67c9c0aeeb.tar.bz2 |
Refer AXIS2C-1466
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@961310 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'util')
-rw-r--r-- | util/test/util/test_thread.c | 16 | ||||
-rw-r--r-- | util/test/util/test_thread.h | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/util/test/util/test_thread.c b/util/test/util/test_thread.c index e10b5b7..cbdead5 100644 --- a/util/test/util/test_thread.c +++ b/util/test/util/test_thread.c @@ -47,7 +47,7 @@ init_func( } void -thread_init( +test_thread_init( const axutil_env_t * env) { axutil_allocator_t *allocator = NULL; @@ -57,17 +57,17 @@ thread_init( control = axutil_thread_once_init(allocator); if (control) - printf("success - thread_init - axutil_thread_once_init \n"); + printf("success - test_thread_init - axutil_thread_once_init \n"); else - printf("failure - thread_init - axutil_thread_once_init \n"); + printf("failure - test_thread_init - axutil_thread_once_init \n"); thread_lock = axutil_thread_mutex_create(allocator, AXIS2_THREAD_MUTEX_DEFAULT); if (thread_lock) - printf("success - thread_init - axutil_thread_mutex_create \n"); + printf("success - test_thread_init - axutil_thread_mutex_create \n"); else - printf("failure - thread_init - axutil_thread_mutex_create \n"); + printf("failure - test_thread_init - axutil_thread_mutex_create \n"); } void *AXIS2_CALL @@ -125,7 +125,7 @@ test_axutil_thread_create( printf("success - test_axutil_thread_create - axutil_thread_join \n"); else printf - ("failure - thread_init - test_axutil_thread_create - axutil_thread_join \n"); + ("failure - test_thread_init - test_axutil_thread_create - axutil_thread_join \n"); rv = axutil_thread_join(t2); @@ -133,7 +133,7 @@ test_axutil_thread_create( printf("success - test_axutil_thread_create - axutil_thread_join \n"); else printf - ("failure - thread_init - test_axutil_thread_create - axutil_thread_join \n"); + ("failure - test_thread_init - test_axutil_thread_create - axutil_thread_join \n"); } @@ -275,7 +275,7 @@ void run_test_thread( const axutil_env_t * env) { - thread_init(env); + test_thread_init(env); test_axutil_thread_create(env); check_locks(); check_thread_once(); diff --git a/util/test/util/test_thread.h b/util/test/util/test_thread.h index b006b3f..17d4e7b 100644 --- a/util/test/util/test_thread.h +++ b/util/test/util/test_thread.h @@ -24,7 +24,7 @@ void init_func( void); -void thread_init( +void test_thread_init( const axutil_env_t * env); void *AXIS2_CALL test_function( |