Delete useless threading utils

This commit is contained in:
Lars Mueller 2020-12-21 18:18:17 +01:00
parent 7f36221d45
commit 847bca6f69
2 changed files with 0 additions and 20 deletions

@ -66,7 +66,6 @@ local components = {
player = {},
table = {},
text = {string = "local"},
threading = {},
vector = {},
trie = {}
}

@ -1,19 +0,0 @@
locks={}
function request(resource, func, ...)
if locks[resource] then
table.insert(locks[resource], {func=func, args={...}})
return false
end
locks[resource]={}
return true
end
function free(resource)
if locks[resource] then
local first=locks[resource][1]
if first then
first.func(unpack(first.args), true)
end
end
locks[resource]=nil
return true
end