Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples/userspace/shared_mem: Fix SMP race
There was some unlocked initialization code in the "enc" thread that would race with the "pt" and "ct" threads if another CPU was available to run them (it was safe on UP because "enc" entered the queue first and was cooperative, the others wouldn't run until it blocked). Move it to main() and remove the enc_state guard variable which is no longer doing anything. Signed-off-by: Andy Ross <[email protected]>
- Loading branch information