Merge branch 'develop' into MAX-324

Conflicts:
	utils/skygw_utils.cc
This commit is contained in:
Markus Makela
2015-03-06 17:07:39 +02:00
8 changed files with 68 additions and 6 deletions

View File

@ -145,12 +145,16 @@ int atomic_add(
int *variable,
int value)
{
#ifdef __GNUC__
return (int) __sync_fetch_and_add (variable, value);
#else
asm volatile(
"lock; xaddl %%eax, %2;"
:"=a" (value)
: "a" (value), "m" (*variable)
: "memory" );
return value;
#endif
}
@ -2171,4 +2175,4 @@ strip_escape_chars (char* val)
cur++;
}
return true;
}
}