 |
PK_THREAD_register_memory_cbs |
|
PK_ERROR_code_t PK_THREAD_register_memory_cbs
(
--- received arguments ---
PK_MEMORY_frustrum_t frustrum --- application's memory handlers
)
This function registers memory allocation and free functions for the calling
thread to use in Parasolid when returning variable length information.
Specific Errors:
PK_ERROR_memory_not_empty Data is in process of being returned
The thread alloc and free functions will override the registered session alloc
and free functions. See PK_MEMORY_register_callbacks for information on how
memory handlers are used.
If this function has not been called, or either of the function pointers
given is NULL, Parasolid will default to the session memory functions.
Parasolid subthreads will inherit the memory functions from the application
threads that started them.
This function may only be called after the modeller has started, when
Parasolid's internal PK memory for the calling thread is empty, and when
subthreads are not running.