j
k
j a
j l
What happens when you change...
bool try_lock() { int r; __asm__ __volatile__( "swp %0, %1, [%2]": "=r"( r ): // outputs
bool try_lock() { int r;
__asm__ __volatile__( "swp %0, %1, [%2]": "=r"( r ): // outputs
... this line to "=&r"( r ): // outputs ?
"r"( 1 ), "r"( &v_ ): // inputs "memory", "cc" ); return r == 0; }
"r"( 1 ), "r"( &v_ ): // inputs "memory", "cc" );
return r == 0; }
Back to the thread
Back to the list