Branch: Tag:

2003-03-17

2003-03-17 13:57:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fix for running in UNLOCKED mode.

Rev: src/block_alloc.h:1.67

2:   || 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: block_alloc.h,v 1.66 2003/03/16 19:28:37 grubba Exp $ + || $Id: block_alloc.h,v 1.67 2003/03/17 13:57:39 grubba Exp $   */      #undef PRE_INIT_BLOCK
366:    p=PIKE_CONCAT(DATA,_hash_table)[hval]; \    if(!p || p->PTR_HASH_ALLOC_DATA == ptr) \    { \ -  DO_IF_RUN_UNLOCKED(mt_unlock(&PIKE_CONCAT(DATA,_mutex))); \ +     return p; \    } \    while((p=*(pp=&p->BLOCK_ALLOC_NEXT))) \
405:    p=PIKE_CONCAT(DATA,_hash_table)[hval]; \    if(!p || p->PTR_HASH_ALLOC_DATA == ptr) \    { \ -  DO_IF_RUN_UNLOCKED(mt_unlock(&PIKE_CONCAT(DATA,_mutex))); \ +     return p; \    } \    while((p=p->BLOCK_ALLOC_NEXT)) \