From: Guido Draheim Date: Mon, 12 Dec 2005 05:37:26 +0000 (+0000) Subject: multi threading notes X-Git-Tag: v0.13.48~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bc837bce68249979ea35d9a5d63d24935a045b2;p=zziplib multi threading notes (.) --- diff --git a/zzip/lib.h b/zzip/lib.h index d5608cd..b1ad069 100644 --- a/zzip/lib.h +++ b/zzip/lib.h @@ -49,9 +49,9 @@ struct zzip_dir int errcode; /* zzip_error_t */ long refcount; struct { /* reduce a lot of alloc/deallocations by caching these: */ - volatile int* locked; - volatile struct zzip_file * fp; - volatile char * buf32k; + int * volatile locked; + struct zzip_file * volatile fp; + char * volatile buf32k; } cache; struct zzip_dir_hdr * hdr0; /* zfi; */ struct zzip_dir_hdr * hdr; /* zdp; directory pointer, for dirent stuff */