isupport for threads aanda malloc
This commit is contained in:
parent
48482ff422
commit
7f6084b3b7
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user