httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: cvs commit: apache-2.0/src/lib/apr/time/unix time.c
Date Sat, 17 Jun 2000 21:05:30 GMT
On Sat, Jun 17, 2000 at 11:32:39AM -0000, dreid@locus.apache.org wrote:
>...
>   --- locks.h	2000/04/14 15:58:29	1.7
>   +++ locks.h	2000/06/17 11:32:37	1.8
>   @@ -68,15 +68,26 @@
>        int curr_locked;
>        char *fname;
>    	/* Inter proc */
>   -	sem_id sem_interproc;
>   -	int32  ben_interproc;
>   -	/* Intra Proc */
>   -	sem_id sem_intraproc;
>   -	int32  ben_intraproc;
>   -    /* At some point, we should do a scope for both inter and intra process
>   -     *  locking here.  Something like pthread_mutex with PTHREAD_PROCESS_SHARED
>   -     */    
>   +    sem_id sem_interproc;
>   +    int32  ben_interproc;
>   +    /* Intra Proc */
>   +    sem_id sem_intraproc;
>   +    int32  ben_intraproc;
>    };
>   +
>   +ap_status_t create_intra_lock(struct ap_lock_t *new);
>   +ap_status_t lock_intra(struct ap_lock_t *lock);
>   +ap_status_t unlock_intra(struct ap_lock_t *lock);
>   +ap_status_t destroy_intra_lock(struct ap_lock_t *lock);
>   +
>   +ap_status_t create_inter_lock(struct ap_lock_t *new);
>   +ap_status_t lock_inter(struct ap_lock_t *lock);
>   +ap_status_t unlock_inter(struct ap_lock_t *lock);
>   +ap_status_t destroy_inter_lock(struct ap_lock_t *lock);
>   +
>   +ap_status_t child_init_lock(struct ap_lock_t **lock, ap_pool_t *cont, 
>   +                            const char *fname);

If those functions aren't static (e.g. they are exposed from the library),
then they should be namespace-protected.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Mime
View raw message