** Written by Kiem-Phong Vo
*/
-/* code to initialize mutexes */
-static Vtmutex_t Sfmutex;
-
/* global variables used internally to the package */
Sfextern_t _Sfextern = { 0, /* _Sfpage */
{NIL(Sfpool_t *), 0, 0, 0, NIL(Sfio_t **)}, /* _Sfpool */
NIL(void (*)(void)), /* _Sfcleanup */
0, /* _Sfexiting */
0, /* _Sfdone */
- &Sfmutex /* _Sfmutex */
};
/* accessible to application code for a few fast macro functions */
#define _Sfcleanup (_Sfextern.sf_cleanup)
#define _Sfexiting (_Sfextern.sf_exiting)
#define _Sfdone (_Sfextern.sf_done)
-#define _Sfmutex (_Sfextern.sf_mutex)
typedef struct _sfextern_s {
ssize_t sf_page;
struct _sfpool_s sf_pool;
void (*sf_cleanup) (void);
int sf_exiting;
int sf_done;
- Vtmutex_t *sf_mutex;
} Sfextern_t;
/* grain size for buffer increment */