diff options
Diffstat (limited to 'winsup/testsuite/winsup.api/pthread/cancel5.c')
-rw-r--r-- | winsup/testsuite/winsup.api/pthread/cancel5.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/winsup/testsuite/winsup.api/pthread/cancel5.c b/winsup/testsuite/winsup.api/pthread/cancel5.c index dd5be7b..05b8ef9 100644 --- a/winsup/testsuite/winsup.api/pthread/cancel5.c +++ b/winsup/testsuite/winsup.api/pthread/cancel5.c @@ -38,12 +38,13 @@ *
* Fail Criteria:
* - Process returns non-zero exit status.
- */
-
-#include "test.h"
-
-/*
- * Create NUMTHREADS threads in addition to the Main thread.
+ */ + +#include "test.h" +#include "cpu_relax.h" + +/* + * Create NUMTHREADS threads in addition to the Main thread. */
enum {
NUMTHREADS = 10
@@ -89,7 +90,7 @@ mythread(void * arg) {
int i;
for (i = 0; i < 1E7; i++)
- __asm__ volatile ("pause":::);
+ CPU_RELAX();
}
}
|