how to understand thread clearly? see my comments
I run these code and return such results.
import threading
from objc_util import *
import ui
td=ObjCClass('NSThread')
print(td.currentThread())
#why isn't this in a mainthread? it shows in background thread.
#it shows in background thread,it's okay
@ui.in_background
def test1():
print(td.currentThread())
#it shows in main thread,it's okay
@on_main_thread
def main():
global td
print(td.currentThread())
test1()
if __name__=='__main__':
main()