[cairo] Cairo mutex implementation for win32 (was Re: Cairo exports and more)

Carl Worth cworth at cworth.org
Mon Sep 19 13:51:07 PDT 2005


On Mon, 19 Sep 2005 22:03:24 +0200, Hans Breuer wrote:
> On 08.09.2005 17:32, Carl Worth wrote:
> > 
> > Can't you just do mutex creation in the "DLL load branch of DllMain" ?
> > 
> Sure, patch attached. ChangeLog entry something along the line of:

Thanks Hans,

This looks just fine to me. And it looks like when I add a new mutex
and forget to also add it to the list in DllMain that the first win32
compile will cause a compile-time error. This is much better than an
approach I had imagined which would have led to uninitialized objects in
that case, (and presumably, run-time errors that would be harder to
diagnose).

Were you planning on jumping through the freedesktop.org hoops in
order to get commit access? I would sure appreciate that, if you
would.

Otherwise, I can go ahead and commit this fix for both HEAD and
BRANCH_1_0.

-Carl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050919/46f6516c/attachment.pgp


More information about the cairo mailing list