Lines Matching defs:daemon

816 # Set of Thread._tstate_lock locks of non-daemon threads used by _shutdown()
850 args=(), kwargs=None, *, daemon=None):
890 if daemon is not None:
891 self._daemonic = daemon
893 self._daemonic = current_thread().daemon
933 status += " daemon"
984 # happen when a daemon thread wakes up at an unfortunate
1016 if not self.daemon:
1066 if not self.daemon:
1200 def daemon(self):
1201 """A boolean value indicating whether this thread is a daemon thread.
1205 main thread is not a daemon thread and therefore all threads created in
1206 the main thread default to daemon = False.
1208 The entire Python program exits when only daemon threads are left.
1214 @daemon.setter
1215 def daemon(self, daemonic):
1219 raise RuntimeError("cannot set daemon status of active thread")
1223 """Return whether this thread is a daemon.
1225 This method is deprecated, use the daemon attribute instead.
1229 warnings.warn('isDaemon() is deprecated, get the daemon attribute instead',
1231 return self.daemon
1234 """Set whether this thread is a daemon.
1236 This method is deprecated, use the .daemon property instead.
1240 warnings.warn('setDaemon() is deprecated, set the daemon attribute instead',
1242 self.daemon = daemonic
1320 # Python shutdown. It is mostly needed for daemon threads.
1403 Thread.__init__(self, name="MainThread", daemon=False)
1418 # They are marked as daemon threads so we won't wait for them
1424 Thread.__init__(self, name=_newname("Dummy-%d"), daemon=True)
1513 non-daemon threads are joined in `_shutdown()`. It provides a similar
1536 Wait until the Python thread state of all non-daemon threads get deleted.