Intial commit

This commit is contained in:
Mario Fetka
2024-05-27 16:13:40 +02:00
parent f8dc12b10a
commit d71d446104
2495 changed files with 539746 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
/*
* Copyright (c) 1991-1994 by the University of Southern California
*
* For copying and distribution information, please see the file
* <usc-license.h>.
*/
#include <usc-license.h>
#include <pfs_threads.h>
#include "ietftype_parse.h"
#ifdef PFS_THREADS
p_th_mutex p_th_mutexWAISMSGBUFF; /* declaration */
p_th_mutex p_th_mutexIETFTYPE; /* declaration */
p_th_mutex p_th_mutexWAISSOURCE; /* declaration */
#endif
void
wais_gw_init_mutexes(void)
{
#ifdef PFS_THREADS
p_th_mutex_init(p_th_mutexWAISMSGBUFF);
p_th_mutex_init(p_th_mutexIETFTYPE);
p_th_mutex_init(p_th_mutexWAISSOURCE);
ietftype_init(); /* Safer than mutexing it */
#endif
}
#ifndef NDEBUG
void
wais_gw_diagnose_mutexes(void)
{
#ifdef PFS_THREADS
DIAGMUTEX(WAISMSGBUFF,"WAISMSGBUFF");
DIAGMUTEX(IETFTYPE,"IETFTYPE");
DIAGMUTEX(WAISSOURCE,"WAISSOURCE");
#endif
}
#endif /*NDEBUG*/