mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-20 12:05:48 -04:00

It is always doing work on behalf of another thread that presumably has the mutex, so if it is calling SB API's it should have free access to the mutex. This is the same decision as we made earlier with the process RunLock. Differential Revision: https://reviews.llvm.org/D68174 llvm-svn: 373280
14 lines
174 B
C
14 lines
174 B
C
#include <stdio.h>
|
|
|
|
void foo() {
|
|
int foo = 10;
|
|
printf("%d\n", foo); // Set a breakpoint here.
|
|
foo = 20;
|
|
printf("%d\n", foo);
|
|
}
|
|
|
|
int main() {
|
|
foo();
|
|
return 0;
|
|
}
|