|
|
|
|
javacall and MT safe
Posted:
Aug 9, 2008 7:08 PM
|
|
|
Hi
I'm currently porting the phoneme feature to a new platform. I've implemented the memory layer (eg. memory.c - javacall_memory_heap_allocate()) in javacall. The memory.c has some data structure that keeps track to the number of byte request by heap from PCSL.
Currently I've not done any locking when I access and modify these structure. Donuts seem to run okay on them (but then again Donuts is a single threaded app). My question is should I assume that in a multi threaded Java app, the JVM will call the lower level javacall (and also PCSL C) routines in a threadsafe manner or do I assume that calls are never threadsafe and my routines should do the right thing.
Thanks
Regards Chuk
|
|
|
|