1b10db2002-10-08Martin Nilsson /*\ ||| This file is part of Pike. For copyright information see COPYRIGHT. ||| Pike is distributed under GPL, LGPL and MPL. See the file COPYING ||| for more information. ||| $Id: pike_cpulib.c,v 1.3 2002/10/08 20:22:24 nilsson Exp $ \*/
aad99b2001-03-28Fredrik Hübinette (Hubbe) #include "global.h" #include "pike_cpulib.h" #include "svalue.h" #ifdef PIKE_NEED_MEMLOCK #define PIKE_MEM_HASH 17903 PIKE_MUTEX_T pike_memory_locks[PIKE_MEM_HASH];
45637c2001-04-07Fredrik Hübinette (Hubbe) void init_pike_cpulib(void)
aad99b2001-03-28Fredrik Hübinette (Hubbe) { int e;
45637c2001-04-07Fredrik Hübinette (Hubbe)  for(e=0;e<PIKE_MEM_HASH;e++) mt_init_recursive(pike_memory_locks+e);
aad99b2001-03-28Fredrik Hübinette (Hubbe) } #endif