altos: Protect shared storage_data with mutex
authorKeith Packard <keithp@keithp.com>
Wed, 29 Jul 2020 06:43:04 +0000 (23:43 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 30 Jul 2020 18:06:50 +0000 (11:06 -0700)
commitc56bcc315ac29d001e62859b61ede890a8b7c64f
treef704ea60a427142cdf102ed79d71dafdf74e7a77
parent8a24d37e40210b1fb5cdab944c3a6d9ae4e144d7
altos: Protect shared storage_data with mutex

As storage_data is shared between all threads, protect it
with a mutex to avoid collisions.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_storage.c