We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c8e050 commit aaf385cCopy full SHA for aaf385c
test/threadstest.c
@@ -357,6 +357,13 @@ static void writer_fn(int id, int *iterations)
357
break;
358
} else
359
#endif
360
+ #ifdef __riscv
361
+ extern uint32_t OPENSSL_riscvcap_P[];
362
+ if (contention != 0 && OPENSSL_riscvcap_P[0] == 0x200e) {
363
+ if ((ossl_time2seconds(t2) - ossl_time2seconds(t1)) >= 4000)
364
+ break;
365
+ } else
366
+ #endif
367
if ((ossl_time2seconds(t2) - ossl_time2seconds(t1)) >= 4)
368
369
}
0 commit comments