X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=include%2Fcommon.h;fp=include%2Fcommon.h;h=ce3eabf296d3e5a1779bb14c17a4b3aa45c7436a;hp=fbd64bc2a84faf5c17c69df3518ed60ea7e0ea32;hb=86fd9c8abfbacea2902b4fe42a8a4664b2a531cf;hpb=778b8c8ca708b082a1192acfb114a6751b2ad7c9 diff --git a/include/common.h b/include/common.h index fbd64bc..ce3eabf 100644 --- a/include/common.h +++ b/include/common.h @@ -1,4 +1,4 @@ -/* +/* * Written by Josh Dybnis and released to the public domain, as explained at * http://creativecommons.org/licenses/publicdomain */ @@ -19,7 +19,7 @@ #ifndef NBD_SINGLE_THREADED -#define MAX_NUM_THREADS 16 // make this whatever you want, but make it a power of 2 +#define MAX_NUM_THREADS 32 // make this whatever you want, but make it a power of 2 #define SYNC_SWAP(addr,x) __sync_lock_test_and_set(addr,x) #define SYNC_CAS(addr,old,x) __sync_val_compare_and_swap(addr,old,x)