isupport for threads aanda malloc

This commit is contained in:
Vítor Santos Costa 2011-11-30 13:04:49 +00:00
parent 48482ff422
commit 7f6084b3b7
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,9 @@
/****************************************************************************************** /******************************************************************************************
** use shared pages memory alloc scheme for OPTYap data structures? (optional) ** ** use shared pages memory alloc scheme for OPTYap data structures? (optional) **
******************************************************************************************/ ******************************************************************************************/
/* #define USE_PAGES_MALLOC 1 */ #ifdef THREADS
#define USE_PAGES_MALLOC 1
#endif

View File

@ -79,7 +79,7 @@ typedef struct page_header {
struct pages { struct pages {
#ifdef USE_PAGES_MALLOC #ifdef USE_PAGES_MALLOC
#ifdef YAPOR #if defined(YAPOR) || defined(THREADS)
lockvar lock; lockvar lock;
#endif /* YAPOR */ #endif /* YAPOR */
int structs_per_page; int structs_per_page;