mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 21:51:30 +00:00
use threaded build only on build_uwsgi()
This commit is contained in:
+9
-8
@@ -101,14 +101,6 @@ def thread_compiler(num):
|
||||
return
|
||||
|
||||
|
||||
if CPUCOUNT > 1:
|
||||
print_lock = Lock()
|
||||
compile_queue = Queue(maxsize=CPUCOUNT)
|
||||
for i in range(0,CPUCOUNT):
|
||||
t = Thread(target=thread_compiler,args=(i,))
|
||||
t.daemon = True
|
||||
t.start()
|
||||
thread_compilers.append(t)
|
||||
|
||||
|
||||
def binarize(name):
|
||||
@@ -219,6 +211,15 @@ def build_uwsgi(uc, print_only=False):
|
||||
|
||||
gcc_list, cflags, ldflags, libs = uc.get_gcll()
|
||||
|
||||
if CPUCOUNT > 1:
|
||||
print_lock = Lock()
|
||||
compile_queue = Queue(maxsize=CPUCOUNT)
|
||||
for i in range(0,CPUCOUNT):
|
||||
t = Thread(target=thread_compiler,args=(i,))
|
||||
t.daemon = True
|
||||
t.start()
|
||||
thread_compilers.append(t)
|
||||
|
||||
if uc.get('embedded_plugins'):
|
||||
ep = uc.get('embedded_plugins').split(',')
|
||||
epc = "-DUWSGI_DECLARE_EMBEDDED_PLUGINS=\""
|
||||
|
||||
Reference in New Issue
Block a user