Branch: Tag:

2009-01-11

2009-01-11 14:52:29 by Stephen R. van den Berg <srb@cuci.nl>

Fixed a spello that caused QuotaDB to not be thread safe. Thanks to srb for
pointing it out.

Rev: server/etc/modules/Roxen.pmod:1.265

1:   // This is a roxen pike module. Copyright © 1999 - 2004, Roxen IS.   // - // $Id: Roxen.pmod,v 1.264 2009/01/09 17:56:03 mast Exp $ + // $Id: Roxen.pmod,v 1.265 2009/01/11 14:52:29 mast Exp $      #include <roxen.h>   #include <config.h>
3124:      class QuotaDB   { - #if constant(create_thread) + #if constant(thread_create)    object(Thread.Mutex) lock = Thread.Mutex();   #define LOCK() mixed key__; catch { key__ = lock->lock(); }   #define UNLOCK() do { if (key__) destruct(key__); } while(0) - #else /* !constant(create_thread) */ + #else /* !constant(thread_create) */   #define LOCK()   #define UNLOCK() - #endif /* constant(create_thread) */ + #endif /* constant(thread_create) */       constant READ_BUF_SIZE = 256;    constant CACHE_SIZE_LIMIT = 512;