[cairo] Recommendations for 1.4.0

Hans Breuer hans at breuer.org
Sat Mar 3 13:46:47 PST 2007


On 03.03.2007 22:13, Behdad Esfahbod wrote:
> Hi,
> 
> While updating docs for the 1.3.16 release yesterday I gathered the
> following that I suggest we fix before 1.4.0:
> 
[...]
>   - Fix mutex initialization in win32, os2, and beos backends.  They are
> out of synch with the actually mutexes declared, and that causes link
> errors if not using pthread on win32.  I'm wondering if we should go for
> the backup plan:
> 
> http://lists.freedesktop.org/archives/cairo/2007-February/009679.html
> 
For win32 you can just apply the following patch.

Regards,
	Hans

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert
-------------- next part --------------
--- cairo-win32-surface.c.org	Sat Mar 03 05:14:56 2007
+++ cairo-win32-surface.c	Sat Mar 03 22:36:57 2007
@@ -1898,6 +1898,7 @@
 CRITICAL_SECTION cairo_toy_font_face_hash_table_mutex;
 CRITICAL_SECTION cairo_scaled_font_map_mutex;
 CRITICAL_SECTION cairo_ft_unscaled_font_map_mutex;
+CRITICAL_SECTION cairo_font_face_mutex;
 
 static int _cairo_win32_initialized = 0;
 
@@ -1910,6 +1911,7 @@
     InitializeCriticalSection (&cairo_toy_font_face_hash_table_mutex);
     InitializeCriticalSection (&cairo_scaled_font_map_mutex);
     InitializeCriticalSection (&cairo_ft_unscaled_font_map_mutex);
+    InitializeCriticalSection (&cairo_font_face_mutex);
 
     _cairo_win32_initialized = 1;
 }
@@ -1929,6 +1931,7 @@
     DeleteCriticalSection (&cairo_toy_font_face_hash_table_mutex);
     DeleteCriticalSection (&cairo_scaled_font_map_mutex);
     DeleteCriticalSection (&cairo_ft_unscaled_font_map_mutex);
+    DeleteCriticalSection (&cairo_font_face_mutex);
     break;
   }
   return TRUE;


More information about the cairo mailing list