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 Fri, 28 Dec 2001 23:58:39 GMT
wrowe       01/12/28 15:58:39

  Modified:    threadproc/win32 thread.c
  Log:
    MSVC Docs reflect that _beginthreadex will set doserrno, which is the most
    complete documentation of failure we can ask for.
  
  Revision  Changes    Path
  1.42      +2 -7      apr/threadproc/win32/thread.c
  
  Index: thread.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/win32/thread.c,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- thread.c	27 Dec 2001 17:03:00 -0000	1.41
  +++ thread.c	28 Dec 2001 23:58:39 -0000	1.42
  @@ -102,8 +102,7 @@
   {
       apr_status_t stat;
   	unsigned temp;
  -    int lasterror;
  - 
  +
       (*new) = (apr_thread_t *)apr_palloc(cont, sizeof(apr_thread_t));
   
       if ((*new) == NULL) {
  @@ -125,11 +124,7 @@
       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 
  -         * XXX: need to check the sources
  -         */
  +        return APR_FROM_OS_ERROR(_doserrno);
       }
   
       if (attr && attr->detach) {
  
  
  

Mime
View raw message