Thread
:
atomic variables on Maemo?
View Single Post
vbar
2011-07-02 , 09:09
Posts: 3 | Thanked: 1 time | Joined on Jun 2011
#
1
Hi,
I'd like to use gcc intrinsics for atomic memory access (__sync_lock_test_and_set etc.) in my application, but under scratchbox, a program with them doesn't link. Googling shows it's a known gcc problem, which
a) may be solved by using the correct -march switch - which would be the right value for Maemo? or
b) may not be solvable on ARM, since it (generally - not always) doesn't support the necessary atomic instructions.
So, did anybody need atomic variables on Maemo? How did you go about getting them?
Quote & Reply
|
vbar
View Public Profile
Find all posts by vbar