Commit a560d73d authored by Yoni Fogel's avatar Yoni Fogel

Closes #1971 closes[t:1971] Hack (redefine UU() again in rwlock.h) to fix windows compile.

This appears to be needed due to a bug (feature to copy microsoft perhaps?) of intel compiler in windows
where some macro functions do not propogate from headers to later headers

git-svn-id: file:///svn/toku/tokudb@14244 c7de825b-a66e-492c-adef-691d508d4ae1
parent 125a3430
......@@ -86,6 +86,8 @@ static inline void rwlock_prefer_read_lock(RWLOCK rwlock, toku_pthread_mutex_t *
// If a stall would happen (write lock is held), instead return EBUSY immediately.
// expects: mutex is locked
//Bug in ICL compiler prevents the UU definition from propogating to this header. Redefine UU here.
#define UU(x) x __attribute__((__unused__))
static inline int rwlock_try_prefer_read_lock(RWLOCK rwlock, toku_pthread_mutex_t *UU(mutex)) {
int r = EBUSY;
if (!rwlock->writer) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment