示例#1
0
文件: pwrmount.py 项目: rep/pwrfs
	def _close(self, e):
		print '_close', e
		self._closed = True
		self.read_watcher.stop()
		print 'unmounting...'
		self._unmount()
		print 'unlooping...'
		unloop()
示例#2
0
 def _close(self, e):
     print '_close', e
     self._closed = True
     self.read_watcher.stop()
     print 'unmounting...'
     self._unmount()
     print 'unlooping...'
     unloop()
示例#3
0
文件: client.py 项目: rep/pwrcall
def printresult(res, a, b):
    global c
    if res != a + b:
        print 'error, res!= a+b', res, a + b
        n.shutdown()
        unloop()

    c += 1
    ctime = time.time()

    if c % 1000 == 0:
        print int(ctime * 1000), c

    if ctime - starttime < 60.0:
        startcall()
    else:
        print int(ctime * 1000), c
        n.shutdown()
        unloop()
示例#4
0
文件: client.py 项目: rep/pwrcall
def printresult(res, a,b):
	global c
	if res != a+b:
		print 'error, res!= a+b', res, a+b
		n.shutdown()
		unloop()

	c += 1
	ctime = time.time()

	if c % 1000 == 0:
		print int(ctime*1000), c
	
	if ctime - starttime < 60.0:
		startcall()
	else:
		print int(ctime*1000), c
		n.shutdown()
		unloop()
示例#5
0
文件: mathcli.py 项目: rep/pwrcall
def printexception(r):
	print 'exc:', r
	n.shutdown()
	unloop()
示例#6
0
文件: mathcli.py 项目: rep/pwrcall
def printresult(result):
	print 'printresult:', result
	n.shutdown()
	unloop()
示例#7
0
文件: mathcli.py 项目: rep/pwrcall
def printresult(result):
    print "printresult:", result
    n.shutdown()
    unloop()
示例#8
0
文件: mathcli.py 项目: rep/pwrcall
def printexception(r):
    print "exc:", r
    n.shutdown()
    unloop()
示例#9
0
文件: giftcli.py 项目: rep/pwrcall
def printexception(r, msg):
	print 'exc', msg, ':', r
	n.shutdown()
	unloop()
示例#10
0
文件: instashare.py 项目: rep/pwrcall
 def prexcept(e):
     print 'Error:', e
     n.shutdown()
     unloop()
示例#11
0
文件: instashare.py 项目: rep/pwrcall
		def master_exc(r):
			print 'Exception on Instamaster promise:', e
			unloop()
示例#12
0
文件: instashare.py 项目: rep/pwrcall
			def prexcept(e):
				print 'Error:', e
				n.shutdown()
				unloop()
示例#13
0
文件: instashare.py 项目: rep/pwrcall
			def donecb(r):
				print 'done:', r
				n.shutdown()
				unloop()
示例#14
0
文件: giftcli.py 项目: rep/pwrcall
def printexception(r, msg):
    print 'exc', msg, ':', r
    n.shutdown()
    unloop()
示例#15
0
文件: cli.py 项目: rep/pwrcall
def close(r=None):
	n.shutdown()
	unloop()
示例#16
0
文件: cli.py 项目: rep/pwrcall
def printexception(r):
	print 'exc:', r
	n.shutdown()
	unloop()
示例#17
0
文件: cli.py 项目: rep/pwrcall
def close(r=None):
    n.shutdown()
    unloop()
示例#18
0
文件: instashare.py 项目: rep/pwrcall
 def donecb(r):
     print 'done:', r
     n.shutdown()
     unloop()
示例#19
0
文件: pwrweb.py 项目: rep/pwrcall
 def _lclose(self, e):
     logging.critical('Listener closed ({0}). Exiting.'.format(e))
     unloop()
示例#20
0
文件: instashare.py 项目: rep/pwrcall
 def master_exc(r):
     print 'Exception on Instamaster promise:', e
     unloop()
示例#21
0
文件: pwrweb.py 项目: rep/pwrcall
	def _lclose(self, e):
		logging.critical('Listener closed ({0}). Exiting.'.format(e))
		unloop()