[cairo] Static caches and thread-safety
Stuart Parmenter
stuartp at gmail.com
Thu Nov 11 12:54:43 PST 2004
On Thu, 11 Nov 2004 15:16:18 -0500, Keith Packard <keithp at keithp.com> wrote:
>
> Around 14 o'clock on Nov 11, Carl Worth wrote:
>
> > But how shall we fix this?
>
> Our experience in xcb was that you can use the pthread locking APIs
> directly. On linux, glibc has 'weak' stubs which are used when -lpthread
> isn't used by the application. Other systems either appear to include
> those APIs in libc directly.
>
> The requirement that I see is that applications needn't tell cairo that
> they are using multiple threads, and that the application never get
> control while any internal lock is held.
>
> -keith
>
Won't depending on pthreads make hurt cairo's portability? Win32 and
various embedded systems definatly don't have pthreads.
stuart
More information about the cairo
mailing list