Skip to content

Commit

Permalink
yield fix and remove static_assert and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
iranrmrf committed Oct 12, 2022
1 parent 8416783 commit 4e1ec8b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion heap_replacer/locks/nlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void nlock_lock(struct nlock *lock)
{
while (InterlockedCompareExchange(&lock->locked, 1, 0))
{
Sleep(0);
YieldProcessor();
};
}

Expand Down
1 change: 0 additions & 1 deletion heap_replacer/mheap/mheap.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ void *mheap_malloc(struct mheap *heap, size_t size)
}
}


end:
return addr;
}
Expand Down
1 change: 0 additions & 1 deletion heap_replacer/sheap/sheap.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ struct schnk
};
struct schnk *prev;
};
static_assert(sizeof(struct schnk) == 8, "");

struct sheap
{
Expand Down

0 comments on commit 4e1ec8b

Please sign in to comment.