Commit 91cf0b6a authored by Denis Bilenko's avatar Denis Bilenko

thread: improve readability

parent 76851170
......@@ -10,8 +10,8 @@ def get_ident(gr=None):
return id(gr)
def start_new_thread(function, args=(), kwargs={}):
g = spawn_raw(function, *args, **kwargs)
return get_ident(g)
greenlet = spawn_raw(function, *args, **kwargs)
return get_ident(greenlet)
def allocate_lock():
return LockType(1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment