Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semaphore #33

Closed
samchon opened this issue Apr 6, 2019 · 2 comments
Closed

Semaphore #33

samchon opened this issue Apr 6, 2019 · 2 comments
Labels
C++20 enhancement New feature or request

Comments

@samchon
Copy link
Owner

samchon commented Apr 6, 2019

class Semaphore<Max extends number = number>
{
    public constructor(max: Max);
    public max(): Max;

    public acquire(): Promise<void>;
    public try_acquire(): Promise<boolean>;
    public try_acquire_for(ms: number): Promise<boolean>;
    public try_acquire_until(at: Date): Promise<boolean>;

    public release(count: number): Promise<void>;
}
@samchon samchon added enhancement New feature or request C++20 experimental Experimental Feature labels Apr 6, 2019
@samchon
Copy link
Owner Author

samchon commented Jun 15, 2019

Have implemented in v2.2 as an experimental feature

@samchon samchon closed this as completed Jun 15, 2019
@samchon
Copy link
Owner Author

samchon commented Aug 9, 2019

Semaphore regular features in C++20. It must be escaped from the experimental namespace.

@samchon samchon reopened this Aug 9, 2019
samchon pushed a commit that referenced this issue Aug 11, 2019
@samchon samchon removed the experimental Experimental Feature label Oct 8, 2019
@samchon samchon closed this as completed Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++20 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant