aboutsummaryrefslogtreecommitdiff
path: root/src/threading/event.h
Commit message (Expand)AuthorAge
* C++ modernize: Pragma once (#6264)Loïc Blot2017-08-17
* Remove threads.h and replace its definitions with their C++11 equivalents (#5...ShadowNinja2017-06-11
* Use C++11 mutexes only (remove compat code) (#5922)Loïc Blot2017-06-06
* Pass clang-format on 14 trivial header files fixesLoic Blot2017-04-07
* Fix C++11 Windows build of threading codesfan52016-10-06
* Fix use of uninitialised variable in class EventCraig Robbins2016-05-01
* Fix C++11 compilabilityest312016-01-23
* Fix events on WindowsBlockMen2015-12-11
* Fix Event implementationShadowNinja2015-12-07
* Clean up threadingShadowNinja2015-08-23
d">drb_dump(tid) atdebug("Debug ring buffer output for '"..tid.."':") local stopcnt=ringbufcnt[tid] if not stopcnt then atdebug("ID unknown!") return end repeat atdebug(ringbufs[tid][ringbufcnt[tid]]) ringbufcnt[tid]=ringbufcnt[tid]+1 if ringbufcnt[tid] > ringbuflen then ringbufcnt[tid]=0 end until ringbufcnt[tid]==stopcnt end minetest.register_chatcommand("atdebug_show", { params = "train sid", -- Short parameter description description = "Dump debug log", -- Full description privs = {train_operator=true}, -- Require the "privs" privilege to run func = function(name, param) advtrains.drb_dump(param) end, -- Called when command is run. -- Returns boolean success and text output. })