[Bf-committers] changing threadsafe malloc
Brecht Van Lommel
brechtvanlommel at pandora.be
Thu Sep 7 21:12:16 CEST 2006
The scaling node is now in the the patch tracker.
David Millan wrote:
> Sound good, when you finish it You should said to "Plumiferos"
> blendix at pandora.be escribió:
>> Hey all,
>> I'm implementing a compositor node for scaling, and would like to use
>> the imbuf scaling functions. These can't be called directly, because
>> they do malloc with the MEM_*N functions, and with threads enabled
>> MEM_*T should be used instead. Other nodes do some ugly hacks around
>> this problem.
>> Maybe a nicer solution would be to make the MEM_*N functions
>> threadsafe when threads are enabled. The BLI_init_threads could set
>> two callback functions to be use by MEM_*N for lock/unlock, and
>> BLI_end_threads would NULL them again. This would also allow to remove
>> those MEM_*T functions, it's easy to forget using them.
>> Good idea? If so, can I commit this change?
More information about the Bf-committers