Subject | Memory allocation in UDF/SuperServer (ib_util_malloc) |
---|---|
Author | akorud@polynet.lviv.ua |
Post date | 2001-03-19T17:46:45Z |
Hi all.
I'm writing UDF for work in SuperServer environment (Firebird 0.9-
4p1).
So, I have few questions:
- In guide they say it's necessary to use ib_util_malloc for memory
allocation. But I cannot found neither definition no implementation
of this function. How should allocate memory in thread-safe manner?
- Is it thread-safe to declare function-local stack variables:
function(...)
{
struct tm my_time;
}
Thanks in advance,
Andriy Korud
I'm writing UDF for work in SuperServer environment (Firebird 0.9-
4p1).
So, I have few questions:
- In guide they say it's necessary to use ib_util_malloc for memory
allocation. But I cannot found neither definition no implementation
of this function. How should allocate memory in thread-safe manner?
- Is it thread-safe to declare function-local stack variables:
function(...)
{
struct tm my_time;
}
Thanks in advance,
Andriy Korud