apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/threadproc/win32 thread.c
Date Tue, 24 Jul 2001 20:20:02 GMT
wrowe       01/07/24 13:20:02

  Modified:    threadproc/win32 thread.c
  Log:
    Bring the naming conventions more inline with unix
  
  Revision  Changes    Path
  1.34      +4 -3      apr/threadproc/win32/thread.c
  
  Index: thread.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/win32/thread.c,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- thread.c	2001/07/24 05:16:32	1.33
  +++ thread.c	2001/07/24 20:20:02	1.34
  @@ -89,7 +89,7 @@
       return APR_NOTDETACH;
   }
   
  -void *dummy_func(void *opaque)
  +static void *dummy_worker(void *opaque)
   {
       apr_thread_t *thd = (apr_thread_t *)opaque;
       return thd->func(thd, thd->data);
  @@ -122,8 +122,9 @@
       /* Use 0 for Thread Stack Size, because that will default the stack to the
        * same size as the calling thread. 
        */
  -    if (((*new)->td = (HANDLE *)_beginthreadex(NULL, 0, (unsigned int (APR_THREAD_FUNC
*)(void *))dummy_func,
  -                                               (*new), 0, &temp)) == 0) {
  +    if (((*new)->td = (HANDLE *)_beginthreadex(NULL, 0, 
  +                        (unsigned int (APR_THREAD_FUNC *)(void *))dummy_worker,
  +                        (*new), 0, &temp)) == 0) {
           lasterror = apr_get_os_error();
           return APR_EEXIST; 
           /* MSVC++ doc doesn't mention any additional error info 
  
  
  

Mime
View raw message