Languages

Menu
Sites
Language
Type Eina_Lock could not be resolved.

I want to call eina_lock_new(Eina_Lock *mutex) inline function in my multithread application.

So i have to declare an Eina_Lock var on stack.

But the compiler said:"Type Eina_Lock could not be resolved."

In eina_lock.h file i found:

    # elif defined(_WIN32)
    #  include "eina_inline_lock_win32.x"

I searched the SDK directories, can't find elina_inline_lock_win32.x file.

How to invoke eina_lock_new function correctly?

Thanks.

 

 

Responses

9 Replies
Jin Yoon

I think Eina_Lock is not the feature for Tizen devices.

At first, the APIs you've attached are for win32.

And the mutex of Eina is under Eina C++ that is not supported in Tizen.

Sorry about that.

 

Best regards, Jin.

roc john

How to do some sync work between threads under Tizen Platform?

Using pthread_mutex_new to do the same work?

colin Rao

Hi,

I don't face the compiler issue as write below sample code, seems the Tizen Native App support the Eina mutex.

    Eina_Lock *mutex;
    eina_lock_new(&mutex);

 

roc john

Try to prress F3 to get the Eina_Lock declaration position please, i want to know in which header file the Eina_Lock declare.

colin Rao

Hi,

It's "eina_lock.h", under the tizen sdk folder "tizen-sdk\platforms\mobile-2.3\rootstraps\mobile-2.3-device.core\usr\include\eina-1\eina"

My loal environment,

Win 7, 64bit

Java 7, 64bit

Tizen SDK Rev2, 64bit

colin Rao

Tizen SDK 2.3 Rev2, 64bit

roc john

Could you please paste the struct Eina_Lock definition?

I can't find the struct Eina_Lock definistaion in eina_lock.h, just find follow lines:

# elif defined(_WIN32)
#  include "eina_inline_lock_win32.x"


 I think the struct Eina_Lock was defined in that file~

Thanks!

colin Rao

Hi,

Also, I don't find the struct definition, seems it's been defined in the .c/.cpp file. 

But as the macro definition, I think, for tizen it's should be in "eina_inline_lock_posix.x" or "eina_inline_lock_void.x". Maybe we can try to down the relative source code to check the Eina_lock struct definition.

#ifdef EINA_HAVE_THREADS
# ifdef _WIN32_WCE
#  include "eina_inline_lock_wince.x"
# elif defined(_WIN32)
#  include "eina_inline_lock_win32.x"
# else
#  include "eina_inline_lock_posix.x"
# endif
#else
# include "eina_inline_lock_void.x"
#endif

 

roc john

Thank you colin~

I don't know why and when, after several tryies, the compiler don't compain "Type Eina_Lock could not be resolved" now.

My project builds ok now...

I think it's the problem of IDE perhaps.