Python _thread 模块,stack_size() 实例源码

我们从Python开源项目中,提取了以下30个代码示例,用于说明如何使用_thread.stack_size()

项目:python-    作者:secondtonone1    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:ivaochdoc    作者:ivaoch    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def stack_size(size=None):
        if size is None:
            return _original_stack_size()
        if size > _original_stack_size():
            return _original_stack_size(size)
        else:
            pass
            # not going to decrease stack_size, because otherwise other greenlets in this thread will suffer
项目:Intranet-Penetration    作者:yuxiaokui    | 项目源码 | 文件源码
def stack_size(size=None):
        if size is None:
            return _original_stack_size()
        if size > _original_stack_size():
            return _original_stack_size(size)
        else:
            pass
            # not going to decrease stack_size, because otherwise other greenlets in this thread will suffer
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def stack_size(size=None):
        if size is None:
            return _original_stack_size()
        if size > _original_stack_size():
            return _original_stack_size(size)
        else:
            pass
            # not going to decrease stack_size, because otherwise other greenlets in this thread will suffer
项目:MKFQ    作者:maojingios    | 项目源码 | 文件源码
def stack_size(size=None):
        if size is None:
            return _original_stack_size()
        if size > _original_stack_size():
            return _original_stack_size(size)
        else:
            pass
            # not going to decrease stack_size, because otherwise other greenlets in this thread will suffer
项目:oa_qian    作者:sunqb    | 项目源码 | 文件源码
def stack_size(size=None):
        if size is None:
            return _original_stack_size()
        if size > _original_stack_size():
            return _original_stack_size(size)
        else:
            pass
            # not going to decrease stack_size, because otherwise other greenlets in this thread will suffer
项目:zippy    作者:securesystemslab    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:news-for-good    作者:thecodinghub    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:yt    作者:yt-project    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:Tencent_Cartoon_Download    作者:Fretice    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:fieldsight-kobocat    作者:awemulya    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:web_ctp    作者:molebot    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:web_ctp    作者:molebot    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def stack_size(size=None):
        if size is None:
            return _original_stack_size()
        if size > _original_stack_size():
            return _original_stack_size(size)
        else:
            pass
            # not going to decrease stack_size, because otherwise other greenlets in this thread will suffer
项目:xxNet    作者:drzorm    | 项目源码 | 文件源码
def stack_size(size=None):
        if size is None:
            return _original_stack_size()
        if size > _original_stack_size():
            return _original_stack_size(size)
        else:
            pass
            # not going to decrease stack_size, because otherwise other greenlets in this thread will suffer
项目:CloudPrint    作者:William-An    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:ouroboros    作者:pybee    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:Flask-SocketIO    作者:cutedogspark    | 项目源码 | 文件源码
def stack_size(size=None):
        if size is None:
            return _original_stack_size()
        if size > _original_stack_size():
            return _original_stack_size(size)
        else:
            pass
            # not going to decrease stack_size, because otherwise other greenlets in this thread will suffer
项目:gardenbot    作者:GoestaO    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:projeto    作者:BarmyPenguin    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:flask-zhenai-mongo-echarts    作者:Fretice    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:aweasome_learning    作者:Knight-ZXW    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:kbe_server    作者:xiaohaoppy    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def stack_size(size=None):
        if size is None:
            return _original_stack_size()
        if size > _original_stack_size():
            return _original_stack_size(size)
        else:
            pass
            # not going to decrease stack_size, because otherwise other greenlets in this thread will suffer
项目:Docker-XX-Net    作者:kuanghy    | 项目源码 | 文件源码
def stack_size(size=None):
        if size is None:
            return _original_stack_size()
        if size > _original_stack_size():
            return _original_stack_size(size)
        else:
            pass
            # not going to decrease stack_size, because otherwise other greenlets in this thread will suffer
项目:aws-pycom    作者:pycom    | 项目源码 | 文件源码
def __init__(self, receive_callback):
        self._host = ""
        self._port = -1
        self._cafile = ""
        self._key = ""
        self._cert = ""
        self._sock = None
        self._output_queue_size=-1
        self._output_queue_dropbehavior=-1
        self._mqttOperationTimeout = 5
        self._connection_state = mqttConst.STATE_DISCONNECTED
        self._conn_state_mutex=_thread.allocate_lock()
        self._poll = select.poll()
        self._output_queue=[]
        self._out_packet_mutex=_thread.allocate_lock()
        _thread.stack_size(5120)
        _thread.start_new_thread(self._io_thread_func,())
        self._recv_callback = receive_callback
        self._pingSent=False
        self._ping_interval=20
        self._waiting_ping_resp=False
        self._ping_cutoff=3
        self._receive_timeout=3000
        self._draining_interval=2
        self._draining_cutoff=3
        self._shadow_cb_queue=[]
        self._shadow_cb_mutex=_thread.allocate_lock()
项目:blog_flask    作者:momantai    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0
项目:Lixiang_zhaoxin    作者:hejaxian    | 项目源码 | 文件源码
def stack_size(size=None):
        if size is None:
            return _original_stack_size()
        if size > _original_stack_size():
            return _original_stack_size(size)
        else:
            pass
            # not going to decrease stack_size, because otherwise other greenlets in this thread will suffer
项目:MyFriend-Rob    作者:lcheniv    | 项目源码 | 文件源码
def stack_size(size=None):
    """Dummy implementation of _thread.stack_size()."""
    if size is not None:
        raise error("setting thread stack size not supported")
    return 0