This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: add missing lock_acquire/release in __fp_lock_all/__fp_unlock_all


This locks have been unfortunately removed by me.

2003-03-26 Thomas Pfaff <tpfaff@gmx.net>

	* libc/stdio/findfp.c (__fp_lock_all): Add call to
	__sfp_lock_acquire.
	(__fp_unlock_all): Add call to
	__sfp_lock_release.
--- findfp.c.org	2004-03-19 11:17:41.236772800 +0100
+++ findfp.c	2004-03-26 10:20:57.762862400 +0100
@@ -232,6 +232,8 @@ __fp_unlock (ptr)
 void
 __fp_lock_all ()
 {
+  __sfp_lock_acquire (); 
+
   (void) _fwalk (_REENT, __fp_lock);
 }
 
@@ -239,5 +241,7 @@ void
 __fp_unlock_all ()
 {
   (void) _fwalk (_REENT, __fp_unlock);
+
+  __sfp_lock_release ();
 }
 #endif

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]