mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-06-16 02:15:48 +00:00
19 lines
305 B
Python
19 lines
305 B
Python
from threading import Thread
|
|
import time
|
|
import uwsgi
|
|
|
|
|
|
def mess():
|
|
while True:
|
|
for i in xrange(0, 100):
|
|
if uwsgi.ready():
|
|
uwsgi.signal(17)
|
|
print(i)
|
|
time.sleep(0.1)
|
|
|
|
t = Thread(target=mess)
|
|
t.daemon = True
|
|
t.start()
|
|
|
|
print("thread started")
|