diff options
author | Shido <the.keikun@gmail.com> | 2014-05-30 10:37:54 +0800 |
---|---|---|
committer | Shido <the.keikun@gmail.com> | 2014-05-30 10:37:54 +0800 |
commit | 0a4975ed611db7d1bcfe501008085e420e743128 (patch) | |
tree | bf24b6bd33949e0fb5d1d5e5567571b261831c23 /src/common/thread.c | |
parent | 94f958f87460f077bea712db35b1c461ab749e68 (diff) | |
download | hercules-0a4975ed611db7d1bcfe501008085e420e743128.tar.gz hercules-0a4975ed611db7d1bcfe501008085e420e743128.tar.bz2 hercules-0a4975ed611db7d1bcfe501008085e420e743128.tar.xz hercules-0a4975ed611db7d1bcfe501008085e420e743128.zip |
Fixed typos inside src/
Diffstat (limited to 'src/common/thread.c')
-rw-r--r-- | src/common/thread.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/thread.c b/src/common/thread.c index 91360537f..4be37d576 100644 --- a/src/common/thread.c +++ b/src/common/thread.c @@ -68,7 +68,7 @@ void rathread_init(){ l_threads[i].myID = i; } - // now lets init thread id 0, which represnts the main thread + // now lets init thread id 0, which represents the main thread #ifdef HAS_TLS g_rathread_ID = 0; #endif @@ -83,7 +83,7 @@ void rathread_final(){ register unsigned int i; // Unterminated Threads Left? - // Should'nt happen .. + // Shouldn't happen .. // Kill 'em all! // for(i = 1; i < RA_THREADS_MAX; i++){ @@ -121,9 +121,9 @@ static void *_raThreadMainRedirector( void *p ){ #ifndef WIN32 // When using posix threads - // the threads inherits the Signal mask from the thread which's spawned + // the threads inherits the Signal mask from the thread which spawned // this thread - // so we've to block everything we dont care about. + // so we've to block everything we don't care about. sigemptyset(&set); sigaddset(&set, SIGINT); sigaddset(&set, SIGTERM); @@ -222,10 +222,10 @@ void rathread_destroy ( rAthread handle ){ #else if( pthread_cancel( handle->hThread ) == 0){ - // We have to join it, otherwise pthread wont re-cycle its internal ressources assoc. with this thread. + // We have to join it, otherwise pthread wont re-cycle its internal resources assoc. with this thread. pthread_join( handle->hThread, NULL ); - // Tell our manager to release ressources ;) + // Tell our manager to release resources ;) rat_thread_terminated(handle); } #endif @@ -265,7 +265,7 @@ int rathread_get_tid(){ #ifdef HAS_TLS return g_rathread_ID; #else - // todo + // TODO #ifdef WIN32 return (int)GetCurrentThreadId(); #else |