You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Hyde <bh...@gensym.com> on 1997/12/18 20:15:37 UTC

[PATCH] Finish suite of mutex ops for non-threaded platforms.

Define the last of the suite of mutex operations so modules that are authored to
be multithreaded can avoid ifdef MULTITHREAD.  Triggers significant recompilation.

> cvs diff -u -b src/main/multithread.h
Index: src/main/multithread.h
===================================================================
RCS file: /cvs/apachen/src/main/multithread.h,v
retrieving revision 1.6
diff -u -b -r1.6 multithread.h
--- multithread.h	1997/09/16 00:41:33	1.6
+++ multithread.h	1997/12/18 20:05:14
@@ -50,6 +50,7 @@
 #define create_mutex(name)	((mutex *)dummy_mutex)
 #define acquire_mutex(mutex_id)	((int)MULTI_OK)
 #define release_mutex(mutex_id)	((int)MULTI_OK)
+#define destroy_mutex(mutex_id)	(0)
 
 #endif /* ndef MULTITHREAD */
 

Re: [PATCH] Finish suite of mutex ops for non-threaded platforms.

Posted by Dean Gaudet <dg...@arctic.org>.
Makes sense.  +1.

Dean

On Thu, 18 Dec 1997, Ben Hyde wrote:

> Define the last of the suite of mutex operations so modules that are authored to
> be multithreaded can avoid ifdef MULTITHREAD.  Triggers significant recompilation.
> 
> > cvs diff -u -b src/main/multithread.h
> Index: src/main/multithread.h
> ===================================================================
> RCS file: /cvs/apachen/src/main/multithread.h,v
> retrieving revision 1.6
> diff -u -b -r1.6 multithread.h
> --- multithread.h	1997/09/16 00:41:33	1.6
> +++ multithread.h	1997/12/18 20:05:14
> @@ -50,6 +50,7 @@
>  #define create_mutex(name)	((mutex *)dummy_mutex)
>  #define acquire_mutex(mutex_id)	((int)MULTI_OK)
>  #define release_mutex(mutex_id)	((int)MULTI_OK)
> +#define destroy_mutex(mutex_id)	(0)
>  
>  #endif /* ndef MULTITHREAD */
>  
>