Commit e0ab7f3d by bernhard-gatzhammer

Merge branch 'embb509_centralize_spinlocks' into development

parents f0b55ea8 4fda909d
...@@ -120,6 +120,7 @@ int embb_spin_init(embb_spinlock_t* spinlock) { ...@@ -120,6 +120,7 @@ int embb_spin_init(embb_spinlock_t* spinlock) {
// For now, store the initial value. In the future will use atomic init // For now, store the initial value. In the future will use atomic init
// function (as soon as available). // function (as soon as available).
embb_atomic_store_int(&spinlock->atomic_spin_variable_, 0); embb_atomic_store_int(&spinlock->atomic_spin_variable_, 0);
return EMBB_SUCCESS;
} }
int embb_spin_lock(embb_spinlock_t* spinlock) { int embb_spin_lock(embb_spinlock_t* spinlock) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment