VE Lua Documentation

Press F to search!

running

Definition


-- @/=[C]:-1
function running(...)

Callers

@/lua/common/libs/copas/copas/semaphore.lua
  -- get in line
  local co = coroutine.running()
  self.to_flags[co] = nil
@/lua/common/libs/copas/copas/limit.lua
      local suc, err = pcall(task, unpack(carg)) -- start the task
      self:removethread(coroutine.running())           -- dismiss ourselves
      if not suc then error(err) end             -- rethrow error
  if self.count == 0 then return end  -- There's nothing to do...
  local coro = coroutine.running()
  -- now store this coroutine (so we know which to wakeup) and go to sleep
    queue = ll.new(),         -- tasks waiting (linked list)
    running = {},             -- tasks currently running (indexed by coroutine)
    waiting = {},             -- coroutines, waiting for all tasks being finished (indexed by coro)
@/lua/common/libs/StackTracePlus/StackTracePlus.lua

  t.dumping_same_thread = (thread == coroutine.running())

  thread = thread or coroutine.running()

  thread = thread or coroutine.running()
@/lua/ge/extensions/core/jobsystem.lua
  res.yield = function()
    if coroutine.running() == nil then return end -- not running in a coroutine, do not try to yield
    local dt = res.hp:stop() / 1000
  res.sleep = function(secs)
    if coroutine.running() == nil then return end -- not running in a coroutine
    res.hp:reset()
@/lua/common/libs/copas/copas/lock.lua
function lock:get(timeout)
  local co = coroutine.running()
  local start_time
function lock:release()
  local co = coroutine.running()
@/lua/ge/simTimeAuthority.lua

-- this system determines how fast the simulation time is running (or paused) considering all circumstances.