We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feeea16 commit bef4780Copy full SHA for bef4780
turbine/code/src/turbine/turbine.c
@@ -93,7 +93,7 @@ check_versions()
93
This is a separate function so we can set a function breakpoint
94
*/
95
static void
96
-gdb_sleep(int* t, int i)
+gdb_sleep(volatile int* t, int i)
97
{
98
sleep(1);
99
DEBUG_TURBINE("gdb_check: %i %i\n", *t, i);
@@ -120,7 +120,7 @@ gdb_check(int rank)
120
121
pid_t pid = getpid();
122
printf("Waiting for gdb: rank: %i pid: %i\n", rank, pid);
123
- int t = 0;
+ volatile int t = 0;
124
int i = 0;
125
while (!t)
126
// In GDB, set t=1 to break out
0 commit comments