Skip to content

make semaphores O(1) in storage#640

Merged
slingamn merged 1 commit intoergochat:masterfrom
slingamn:issue639_emptystruct.1
Oct 13, 2019
Merged

make semaphores O(1) in storage#640
slingamn merged 1 commit intoergochat:masterfrom
slingamn:issue639_emptystruct.1

Conversation

@slingamn
Copy link
Copy Markdown
Member

@slingamn slingamn commented Oct 3, 2019

  1. Make the semaphore hold empty structs instead of bools
  2. Make acquire a send and release a receive instead of the other way around; this is mentioned in the memory model documentation and avoids having to fill the semaphore with items up front

@slingamn slingamn merged commit cddc51d into ergochat:master Oct 13, 2019
@slingamn slingamn deleted the issue639_emptystruct.1 branch November 18, 2019 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant