Current Path: > > opt > > hc_python > lib > python3.12 > site-packages > greenlet >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
platform | Directory | - | - | |
tests | Directory | - | - | |
CObjects.cpp | File | 3508 bytes | May 23 2025 10:34:46. | |
PyGreenlet.cpp | File | 23441 bytes | May 23 2025 10:34:46. | |
PyGreenlet.hpp | File | 1463 bytes | May 23 2025 10:34:46. | |
PyGreenletUnswitchable.cpp | File | 4375 bytes | May 23 2025 10:34:46. | |
PyModule.cpp | File | 8587 bytes | May 23 2025 10:34:46. | |
TBrokenGreenlet.cpp | File | 1021 bytes | May 23 2025 10:34:46. | |
TExceptionState.cpp | File | 1359 bytes | May 23 2025 10:34:46. | |
TGreenlet.cpp | File | 25731 bytes | May 23 2025 10:34:46. | |
TGreenlet.hpp | File | 28043 bytes | May 23 2025 10:34:46. | |
TGreenletGlobals.cpp | File | 3264 bytes | May 23 2025 10:34:46. | |
TMainGreenlet.cpp | File | 3276 bytes | May 23 2025 10:34:46. | |
TPythonState.cpp | File | 15779 bytes | May 23 2025 10:34:46. | |
TStackState.cpp | File | 7381 bytes | May 23 2025 10:34:46. | |
TThreadState.hpp | File | 19131 bytes | May 23 2025 10:34:46. | |
TThreadStateCreator.hpp | File | 2610 bytes | May 23 2025 10:34:46. | |
TThreadStateDestroy.cpp | File | 8169 bytes | May 23 2025 10:34:46. | |
TUserGreenlet.cpp | File | 23553 bytes | May 23 2025 10:34:46. | |
__init__.py | File | 1723 bytes | May 23 2025 10:34:46. | |
_greenlet.cpython-312-x86_64-linux-gnu.so | File | 1446128 bytes | May 23 2025 10:34:46. | |
greenlet.cpp | File | 10996 bytes | May 23 2025 10:34:46. | |
greenlet.h | File | 4755 bytes | May 23 2025 10:34:46. | |
greenlet_allocator.hpp | File | 1582 bytes | May 23 2025 10:34:46. | |
greenlet_compiler_compat.hpp | File | 4346 bytes | May 23 2025 10:34:46. | |
greenlet_cpython_compat.hpp | File | 4068 bytes | May 23 2025 10:34:46. | |
greenlet_exceptions.hpp | File | 4503 bytes | May 23 2025 10:34:46. | |
greenlet_internal.hpp | File | 2709 bytes | May 23 2025 10:34:46. | |
greenlet_refs.hpp | File | 34436 bytes | May 23 2025 10:34:46. | |
greenlet_slp_switch.hpp | File | 3198 bytes | May 23 2025 10:34:46. | |
greenlet_thread_support.hpp | File | 867 bytes | May 23 2025 10:34:46. | |
slp_platformselect.h | File | 3841 bytes | May 23 2025 10:34:46. |
/* -*- indent-tabs-mode: nil; tab-width: 4; -*- */ #ifndef GREENLET_INTERNAL_H #define GREENLET_INTERNAL_H #ifdef __clang__ # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wunused-function" #endif /** * Implementation helpers. * * C++ templates and inline functions should go here. */ #define PY_SSIZE_T_CLEAN #include "greenlet_compiler_compat.hpp" #include "greenlet_cpython_compat.hpp" #include "greenlet_exceptions.hpp" #include "TGreenlet.hpp" #include "greenlet_allocator.hpp" #include <vector> #include <string> #define GREENLET_MODULE struct _greenlet; typedef struct _greenlet PyGreenlet; namespace greenlet { class ThreadState; // We can't use the PythonAllocator for this, because we push to it // from the thread state destructor, which doesn't have the GIL, // and Python's allocators can only be called with the GIL. typedef std::vector<ThreadState*> cleanup_queue_t; }; #define implementation_ptr_t greenlet::Greenlet* #include "greenlet.h" void greenlet::refs::MainGreenletExactChecker(void *p) { if (!p) { return; } // We control the class of the main greenlet exactly. if (Py_TYPE(p) != &PyGreenlet_Type) { std::string err("MainGreenlet: Expected exactly a greenlet, not a "); err += Py_TYPE(p)->tp_name; throw greenlet::TypeError(err); } // Greenlets from dead threads no longer respond to main() with a // true value; so in that case we need to perform an additional // check. Greenlet* g = static_cast<PyGreenlet*>(p)->pimpl; if (g->main()) { return; } if (!dynamic_cast<MainGreenlet*>(g)) { std::string err("MainGreenlet: Expected exactly a main greenlet, not a "); err += Py_TYPE(p)->tp_name; throw greenlet::TypeError(err); } } template <typename T, greenlet::refs::TypeChecker TC> inline greenlet::Greenlet* greenlet::refs::_OwnedGreenlet<T, TC>::operator->() const noexcept { return reinterpret_cast<PyGreenlet*>(this->p)->pimpl; } template <typename T, greenlet::refs::TypeChecker TC> inline greenlet::Greenlet* greenlet::refs::_BorrowedGreenlet<T, TC>::operator->() const noexcept { return reinterpret_cast<PyGreenlet*>(this->p)->pimpl; } #include <memory> #include <stdexcept> extern PyTypeObject PyGreenlet_Type; /** * Forward declarations needed in multiple files. */ static PyObject* green_switch(PyGreenlet* self, PyObject* args, PyObject* kwargs); #ifdef __clang__ # pragma clang diagnostic pop #endif #endif // Local Variables: // flycheck-clang-include-path: ("../../include" "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10") // End:
SILENT KILLER Tool