PyGui Example USE_THREADS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



@Benny
I'm still trying to make threads working with python and I noticed a little
mistake in your
PyGui application which makes the USE_THREADS define useless:

 def start(self, cfg_file='pygui.js'):
global USE_THREADS
# Load config
 if cfg_file and os.path.exists(cfg_file):
self.appConfig.loadFile(cfg_file)

if USE_THREADS:
 self.appConfig.epConfig.uaConfig.threadCnt = 1
self.appConfig.epConfig.uaConfig.mainThreadOnly = False
 else:
self.appConfig.epConfig.uaConfig.threadCnt = 0
self.appConfig.epConfig.uaConfig.mainThreadOnly = True
 self.appConfig.epConfig.uaConfig.threadCnt = 0
self.appConfig.epConfig.uaConfig.mainThreadOnly = True

Aren't you overwriting the uaConfig.threadCnt and mainThreadOnly there
again?

Cheers
Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140522/91aeb7a3/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux