Ressource handling

Table of Contents
sipReleaseLock — Release the interpreter lock and save the current Python thread state
sipAcquireLock — Acquire the interpreter lock and restore the Python thread state
sipCondReleaseLock — Release the interpreter lock, if previously acquired, and save Python thread state
sipCondAcquireLock — Acquire the interpreter lock, if not already acquired, and restore Python thread state
sipMalloc — A Python 1.5 style memory allocator that supports Python 1.5 and 1.6
sipFree — A Python 1.5 style memory de-allocator that supports Python 1.5 and 1.6

sipReleaseLock

Name

sipReleaseLock -- Release the interpreter lock and save the current Python thread state

Synopsis

void sipReleaseLock(void);

Description

Calls PyEval_SaveThread().


sipAcquireLock

Name

sipAcquireLock -- Acquire the interpreter lock and restore the Python thread state

Synopsis

void sipAcquireLock(void);

Description

Calls PyEval_RestoreThread().


sipCondReleaseLock

Name

sipCondReleaseLock -- Release the interpreter lock, if previously acquired, and save Python thread state

Synopsis

void sipCondReleaseLock(int relLock);

Description

Calls PyEval_SaveThread().

relLock

Release the interpreter lock, if relLock is true, calling PyEval_SaveThread().

sipCondAcquireLock

Name

sipCondAcquireLock -- Acquire the interpreter lock, if not already acquired, and restore Python thread state

Synopsis

int sipCondAcquireLock(void);

Description

Calls PyEval_RestoreThread().

Return Value

Return TRUE if the lock could be aquired, else FALSE.

sipMalloc

Name

sipMalloc -- A Python 1.5 style memory allocator that supports Python 1.5 and 1.6

Synopsis

ANY * sipMalloc(size_t nbytes);

Description

Return Value

Pointer to allocated memory block (or NULL).

nbytes

Number of bytes to allocate.

sipFree

Name

sipFree -- A Python 1.5 style memory de-allocator that supports Python 1.5 and 1.6

Synopsis

void sipFree(ANY * mem, MMMM MMMM);

Description

mem

A pointer to the memory block to be freed.