apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr-util/include apr_queue.h
Date Mon, 30 Dec 2002 06:19:28 GMT
jerenkrantz    2002/12/29 22:19:28

  Modified:    misc     apr_queue.c
               include  apr_queue.h
  Log:
  Use apr_uint32_t rather than apr_size_t for the maximum queue size.
  
  Revision  Changes    Path
  1.8       +6 -6      apr-util/misc/apr_queue.c
  
  Index: apr_queue.c
  ===================================================================
  RCS file: /home/cvs/apr-util/misc/apr_queue.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -u -r1.7 -r1.8
  --- apr_queue.c	23 Dec 2002 20:36:24 -0000	1.7
  +++ apr_queue.c	30 Dec 2002 06:19:27 -0000	1.8
  @@ -81,10 +81,10 @@
   
   struct apr_queue_t {
       void              **data;
  -    apr_size_t          nelts; /**< # elements */
  -    apr_size_t          in;    /**< next empty location */
  -    apr_size_t          out;   /**< next filled location */
  -    apr_size_t          bounds;/**< max size of queue */
  +    apr_uint32_t        nelts; /**< # elements */
  +    apr_uint32_t        in;    /**< next empty location */
  +    apr_uint32_t        out;   /**< next filled location */
  +    apr_uint32_t        bounds;/**< max size of queue */
       apr_thread_mutex_t *one_big_mutex;
       apr_thread_cond_t  *not_empty;
       apr_thread_cond_t  *not_full;
  @@ -136,7 +136,7 @@
    * Initialize the apr_queue_t.
    */
   APU_DECLARE(apr_status_t) apr_queue_create(apr_queue_t **q, 
  -                                           apr_size_t queue_capacity, 
  +                                           apr_uint32_t queue_capacity, 
                                              apr_pool_t *a)
   {
       apr_status_t rv;
  @@ -288,7 +288,7 @@
   /**
    * not thread safe
    */
  -APU_DECLARE(apr_size_t) apr_queue_size(apr_queue_t *queue) {
  +APU_DECLARE(apr_uint32_t) apr_queue_size(apr_queue_t *queue) {
       return queue->nelts;
   }
   
  
  
  
  1.7       +2 -2      apr-util/include/apr_queue.h
  
  Index: apr_queue.h
  ===================================================================
  RCS file: /home/cvs/apr-util/include/apr_queue.h,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -u -r1.6 -r1.7
  --- apr_queue.h	23 Dec 2002 20:36:23 -0000	1.6
  +++ apr_queue.h	30 Dec 2002 06:19:27 -0000	1.7
  @@ -94,7 +94,7 @@
    * @param a pool to allocate queue from
    */
   APU_DECLARE(apr_status_t) apr_queue_create(apr_queue_t **queue, 
  -                                           apr_size_t queue_capacity, 
  +                                           apr_uint32_t queue_capacity, 
                                              apr_pool_t *a);
   
   /**
  @@ -151,7 +151,7 @@
    * @param queue the queue
    * @returns the size of the queue
    */
  -APU_DECLARE(apr_size_t) apr_queue_size(apr_queue_t *queue);
  +APU_DECLARE(apr_uint32_t) apr_queue_size(apr_queue_t *queue);
   
   /**
    * interrupt all the threads blocking on this queue.
  
  
  

Mime
View raw message