当前位置: 首页>>代码示例>>Python>>正文


Python util.sub_debug函数代码示例

本文整理汇总了Python中multiprocessing.util.sub_debug函数的典型用法代码示例。如果您正苦于以下问题:Python sub_debug函数的具体用法?Python sub_debug怎么用?Python sub_debug使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了sub_debug函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: reduce_handle

def reduce_handle(handle):
    if Popen.thread_is_spawning():
        return (None, Popen.duplicate_for_child(handle), True)
    dup_handle = duplicate(handle)
    _cache.add(dup_handle)
    sub_debug('reducing handle %d', handle)
    return (_get_listener().address, dup_handle, False)
开发者ID:Arrjaan,项目名称:Cliff,代码行数:7,代码来源:reduction.py

示例2: rebuild_handle

def rebuild_handle(pickled_data):
    address, handle, inherited = pickled_data
    if inherited:
        return handle
    sub_debug('rebuilding handle %d', handle)
    conn = Client(address, authkey=current_process().authkey)
    conn.send((handle, os.getpid()))
    new_handle = recv_handle(conn)
    conn.close()
    return new_handle
开发者ID:webiumsk,项目名称:WOT-0.9.15-CT,代码行数:10,代码来源:reduction.py

示例3: __init__

        def __init__(self, address, backlog=None):
            self._address = address
            self._handle_queue = [self._new_handle(first=True)]

            self._last_accepted = None
            sub_debug('listener created with address=%r', self._address)
            self.close = Finalize(
                self, PipeListener._finalize_pipe_listener,
                args=(self._handle_queue, self._address), exitpriority=0
                )
开发者ID:Patsy63,项目名称:python-3.3,代码行数:10,代码来源:connection.py

示例4: __call__

 def __call__(self, *args, **kwargs):
     '''
     Run the callback unless it has already been called or cancelled
     '''
     if self._pid != os.getpid():
         util.sub_debug('finalizer ignored because different process')
         self._weakref = self._callback = self._args = \
             self._kwargs = self._key = None
         return None
     else:
         return UnpatchedFinalize.__call__(self, *args, **kwargs)
开发者ID:jgosmann,项目名称:taskpile,代码行数:11,代码来源:_patch_multiprocessing.py

示例5: _finalize_pipe_listener

 def _finalize_pipe_listener(queue, address):
     sub_debug('closing listener with address=%r', address)
     for handle in queue:
         close(handle)
开发者ID:AndyPanda95,项目名称:python-for-android,代码行数:4,代码来源:connection.py


注:本文中的multiprocessing.util.sub_debug函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。