aboutsummaryrefslogtreecommitdiff
path: root/games/minimal
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2013-08-03 19:04:16 +0300
committerPerttu Ahola <celeron55@gmail.com>2013-08-03 19:04:16 +0300
commitbc5db9b0273d43fffad93cf67cf2bfdb714441a9 (patch)
tree9837b96570a26346415fd3125612e23b11bc2487 /games/minimal
parentc50c9a10f12fb28724b30ec0db00aee39c4a1414 (diff)
downloadminetest-bc5db9b0273d43fffad93cf67cf2bfdb714441a9.tar.gz
Lessen the sky color glitch when quickly turning to look up after looking at ground that contains caves
Diffstat (limited to 'games/minimal')
0 files changed, 0 insertions, 0 deletions
this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef THREADING_MUTEX_H #define THREADING_MUTEX_H #include "threads.h" #if USE_CPP11_MUTEX #include <mutex> using Mutex = std::mutex; using RecursiveMutex = std::recursive_mutex; #else #if USE_WIN_MUTEX #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0501 #endif #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <windows.h> #else #include <pthread.h> #endif #include "util/basic_macros.h" class Mutex { public: Mutex(); ~Mutex(); void lock(); void unlock(); protected: Mutex(bool recursive); void init_mutex(bool recursive); private: #if USE_WIN_MUTEX CRITICAL_SECTION mutex; #else pthread_mutex_t mutex; #endif DISABLE_CLASS_COPY(Mutex); };