branch | stable |
changeset 46698 | f64806207752 |
parent 46240 | a42502e9ae6d |
child 46819 | d4ba4d51f85f |
46697:71443f742886 | 46698:f64806207752 |
---|---|
102 |
102 |
103 |
103 |
104 else: |
104 else: |
105 |
105 |
106 def ismainthread(): |
106 def ismainthread(): |
107 # pytype: disable=module-attr |
|
107 return isinstance(threading.current_thread(), threading._MainThread) |
108 return isinstance(threading.current_thread(), threading._MainThread) |
109 # pytype: enable=module-attr |
|
108 |
110 |
109 def _blockingreader(wrapped): |
111 def _blockingreader(wrapped): |
110 return wrapped |
112 return wrapped |
111 |
113 |
112 |
114 |