[cairo] Re: Linking to Cairo 1.0.2 statically (Win32)

Carl Worth cworth at cworth.org
Fri Oct 14 09:03:32 PDT 2005


On Fri, 14 Oct 2005 17:59:05 +0200, Doodle wrote:
> Vladimir Vukicevic wrote:
> > I still don't see what the problem is with just adding a
> > cairo_win32_surface_init() function.  Heck, it would be negligible
> > overhead to initialize if not initialized in
> > cairo_win32_surface_create().  
> 
> Just a note:
> This init function should initialize other things too, not just surface
> stuffs, but mutexes for other Cairo parts, too, so it might not be a
> good solution to call it from cairo_*_surface_create().

The idea is to not require any new API to be called.

I think it'd be fine to have the call to the new initialize-once
function sprinkled in as many functions as necessary. The only hard
part is really writing the code that guarantees that things are only
executed once.

-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/20051014/10b0e82b/attachment.pgp


More information about the cairo mailing list