apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r981793 - /apr/apr/trunk/threadproc/netware/thread.c
Date Tue, 03 Aug 2010 09:45:30 GMT
Author: fuankg
Date: Tue Aug  3 09:45:30 2010
New Revision: 981793

URL: http://svn.apache.org/viewvc?rev=981793&view=rev
Log:
The Tab Police removed 119 tabs.

Modified:
    apr/apr/trunk/threadproc/netware/thread.c

Modified: apr/apr/trunk/threadproc/netware/thread.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/threadproc/netware/thread.c?rev=981793&r1=981792&r2=981793&view=diff
==============================================================================
--- apr/apr/trunk/threadproc/netware/thread.c (original)
+++ apr/apr/trunk/threadproc/netware/thread.c Tue Aug  3 09:45:30 2010
@@ -41,7 +41,7 @@ apr_status_t apr_threadattr_create(apr_t
 apr_status_t apr_threadattr_detach_set(apr_threadattr_t *attr,apr_int32_t on)
 {
     attr->detach = on;
-	return APR_SUCCESS;   
+    return APR_SUCCESS;   
 }
 
 apr_status_t apr_threadattr_detach_get(apr_threadattr_t *attr)
@@ -71,21 +71,21 @@ static void *dummy_worker(void *opaque)
 }
 
 apr_status_t apr_thread_create(apr_thread_t **new,
- 											apr_threadattr_t *attr, 
-                             				apr_thread_start_t func,
- 											void *data,
- 											apr_pool_t *pool)
+                                            apr_threadattr_t *attr, 
+                                            apr_thread_start_t func,
+                                            void *data,
+                                            apr_pool_t *pool)
 {
     apr_status_t stat;
     long flags = NX_THR_BIND_CONTEXT;
-  	char threadName[NX_MAX_OBJECT_NAME_LEN+1];
+    char threadName[NX_MAX_OBJECT_NAME_LEN+1];
     size_t stack_size = APR_DEFAULT_STACK_SIZE;
 
     if (attr && attr->thread_name) {
         strncpy (threadName, attr->thread_name, NX_MAX_OBJECT_NAME_LEN);
     }
     else {
-	    sprintf(threadName, "APR_thread %04ld", ++thread_count);
+        sprintf(threadName, "APR_thread %04ld", ++thread_count);
     }
 
     /* An original stack size of 0 will allow NXCreateThread() to
@@ -117,27 +117,27 @@ apr_status_t apr_thread_create(apr_threa
     }
     
     (*new)->ctx = NXContextAlloc(
-    	/* void(*start_routine)(void *arg)*/(void (*)(void *)) dummy_worker,
-     	/* void *arg */										   (*new),
-     	/* int priority */ 									   NX_PRIO_MED,
-     	/* NXSize_t stackSize */							   stack_size,
-     	/* long flags */									   NX_CTX_NORMAL,
-     	/* int *error */									   &stat);
-		
-     	                                                                   
-  	stat = NXContextSetName(
-		 	/* NXContext_t ctx */			(*new)->ctx,
-			/* const char *name */			threadName);
-
-  	stat = NXThreadCreate(
-        	/* NXContext_t context */		(*new)->ctx,
-        	/* long flags */				flags,
-        	/* NXThreadId_t *thread_id */	&(*new)->td);
+        /* void(*start_routine)(void *arg)*/(void (*)(void *)) dummy_worker,
+        /* void *arg */                                        (*new),
+        /* int priority */                                     NX_PRIO_MED,
+        /* NXSize_t stackSize */                               stack_size,
+        /* long flags */                                       NX_CTX_NORMAL,
+        /* int *error */                                       &stat);
+        
+                                                                           
+    stat = NXContextSetName(
+            /* NXContext_t ctx */           (*new)->ctx,
+            /* const char *name */          threadName);
+
+    stat = NXThreadCreate(
+            /* NXContext_t context */       (*new)->ctx,
+            /* long flags */                flags,
+            /* NXThreadId_t *thread_id */   &(*new)->td);
 
     if(stat==0)
-     	return APR_SUCCESS;
+        return APR_SUCCESS;
         
-	return(stat);// if error    
+    return(stat);// if error    
 }
 
 apr_os_thread_t apr_os_thread_current()



Mime
View raw message