Repair a verified behavior in cartesi/machine-emulator.
Repair a verified behavior in cartesi/machine-emulator.: a task in OriGent-SFT-Data (Harbor dataset). The host OS timing interface is unsafe when multiple threads use cartesi::os now us() for the first time concurrently. The public function is documented to return an int64 t number of microseconds…
The task
The host OS timing interface is unsafe when multiple threads use cartesi::os_now_us() for the first time concurrently. The public function is documented to return an int64_t number of microseconds elapsed since its first call. If two threads begin calling it before any prior invocation has completed, one caller can…
Part of henryen/OriGent-SFT-Data.