You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2003/12/10 17:27:40 UTC

cvs commit: apr/threadproc/unix threadpriv.c

jorton      2003/12/10 08:27:40

  Modified:    threadproc/unix threadpriv.c
  Log:
  * threadproc/unix/threadpriv.c (apr_threadkey_private_delete):
  Define function regardless of HAVE_PTHREAD_KEY_DELETE.
  
  PR: 23837
  
  Revision  Changes    Path
  1.39      +4 -2      apr/threadproc/unix/threadpriv.c
  
  Index: threadpriv.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/unix/threadpriv.c,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -u -r1.38 -r1.39
  --- threadpriv.c	6 Jan 2003 23:44:38 -0000	1.38
  +++ threadpriv.c	10 Dec 2003 16:27:40 -0000	1.39
  @@ -100,9 +100,9 @@
       }
   }
   
  -#ifdef HAVE_PTHREAD_KEY_DELETE
   APR_DECLARE(apr_status_t) apr_threadkey_private_delete(apr_threadkey_t *key)
   {
  +#ifdef HAVE_PTHREAD_KEY_DELETE
       apr_status_t stat;
   
       if ((stat = pthread_key_delete(key->key)) == 0) {
  @@ -110,8 +110,10 @@
       }
   
       return stat;
  -}
  +#else
  +    return APR_ENOTIMPL;
   #endif
  +}
   
   APR_DECLARE(apr_status_t) apr_threadkey_data_get(void **data, const char *key,
                                                    apr_threadkey_t *threadkey)