Example #1
0
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')
Example #2
0
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')