• Kirill Smelkov's avatar
    bigfile/virtmem: Move _PyThreadState_Current_GET to compat_py2.h · 20115391
    Kirill Smelkov authored
    _PyThreadState_Current_GET() is a function to get current python thread
    state without asserting it is !NULL. It was added as part of d53271b9
    (bigfile/virtmem: Big Virtmem lock)
    
    We are going to adapt it to Python 3.5 (see next patch), so before doing
    so move it to our compatibility place.
    
    In the new place the name is _PyThreadState_UncheckedGet -- like such
    function is named in Python 3.5 (again, see next patch).
    
    Updates: #1
    20115391
_bigfile.c 25.8 KB