def start_advert_thread(vesseldict, myname, nodekey): if should_start_waitable_thread('advert','Advertisement Thread'): # start the AdvertThread and set it to a daemon. I think the daemon # setting is unnecessary since I'll clobber on restart... advertthread = nmadvertise.advertthread(vesseldict, nodekey) nmadvertise.myname = myname advertthread.setDaemon(True) advertthread.start() started_waitable_thread('advert')
def start_advert_thread(vesseldict, myname, nodekey): if should_start_waitable_thread('advert', 'Advertisement Thread'): # start the AdvertThread and set it to a daemon. I think the daemon # setting is unnecessary since I'll clobber on restart... advertthread = nmadvertise.advertthread(vesseldict, nodekey) nmadvertise.myname = myname advertthread.setDaemon(True) advertthread.start() started_waitable_thread('advert')