Tizen Native API  5.0
EFL Threading example 1

You can use threads with Elementary (and EFL) but you need to be careful to only use eina or eet calls inside a thread. Other libraries are not totally threadsafe except for some specific ecore calls designed for working from threads like the ecore_pipe_write() and ecore_thread calls.

Below is an example of how to use EFL calls from a native thread you have already created. You have to put the EFL calls inside the critical block between ecore_thread_main_loop_begin() and ecore_thread_main_loop_end() which ensure you gain a lock on the mainloop. Beware that this requires that the thread WAIT to synchronize with the mainloop at the beginning of the critical section. It is highly suggested you use as few of these in your thread as possible and probably put just a single ecore_thread_main_loop_begin() / ecore_thread_main_loop_end() section at the end of the threads calculation or work when it is done and would otherwise exit to sit idle.

For a progression of examples that become more complex and show other ways to use threading with EFL, please see:

EFL Threading example 2

EFL Threading example 3

EFL Threading example 4

EFL Threading example 5

EFL Threading example 6