minetest/src/threading
est31 abc354a5d0 Atomic: cleanup and add more operations
Cleanup:
	* Remove volatile keyword, it is of no use at all. [1]
	* Remove the enable_if stuff. It had no use either.
	  The most likely explanation why the enable_if stuff was there is that it
	  was used as something like a STATIC_ASSERT to verify that sizeof(T) is not larger
	  than sizeof(void *). This check however is not just misplaced in a place where we
	  already use a lock, it isn't needed at all, as gcc will just generate a call to
	  to the runtime if it compiles for platforms that don't support atomic instructions.
	  The runtime will then most likely use locks.

Code style fixes:
	* Prefix name of the mutex
	* Line everything up nicely, where it makes things look nice
	* Filling \ continuations with spaces is code style rule

Added operations on the atomic var:
	* Compare and swap
	* Swap

The second point of the cleanup also fixes the Android build of the next commit.

[1]: http://stackoverflow.com/q/2484980
2015-11-03 19:07:39 +01:00
..
atomic.h Atomic: cleanup and add more operations 2015-11-03 19:07:39 +01:00
CMakeLists.txt Clean up threading 2015-08-23 22:04:06 -04:00
event.h Clean up threading 2015-08-23 22:04:06 -04:00
mutex_auto_lock.h Clean up threading 2015-08-23 22:04:06 -04:00
mutex.cpp Fix Lua scripting synchronization 2015-11-01 11:32:05 -05:00
mutex.h Rename and move basicmacros.h to util/basic_macros.h 2015-11-02 04:57:55 +01:00
semaphore.cpp Fix MinGW 32-bit build 2015-10-03 13:20:43 -04:00
semaphore.h Rename and move basicmacros.h to util/basic_macros.h 2015-11-02 04:57:55 +01:00
thread.cpp Fix C++11 compatibility 2015-10-31 02:38:23 -04:00
thread.h Rename and move basicmacros.h to util/basic_macros.h 2015-11-02 04:57:55 +01:00