Blender  V3.3
Functions
bpy_threads.c File Reference
#include <Python.h>
#include "../BPY_extern.h"
#include "BLI_utildefines.h"

Go to the source code of this file.

Functions

BPy_ThreadStatePtr BPY_thread_save (void)
 
void BPY_thread_restore (BPy_ThreadStatePtr tstate)
 

Detailed Description

This file contains wrapper functions related to global interpreter lock. these functions are slightly different from the original Python API, don't throw SIGABRT even if the thread state is NULL.

Definition in file bpy_threads.c.

Function Documentation

◆ BPY_thread_restore()

void BPY_thread_restore ( BPy_ThreadStatePtr  tstate)

Analogue of #PyEval_RestoreThread()

Definition at line 28 of file bpy_threads.c.

◆ BPY_thread_save()

BPy_ThreadStatePtr BPY_thread_save ( void  )

Analogue of #PyEval_SaveThread()

Definition at line 15 of file bpy_threads.c.

References NULL.