Skip to content

Provide pick event function #9

Description

@gghyoo

This lib is very good , but can you provide pick event functions that I can handle the event by myself.

some thing like following:

// post a event somewhere
equeue_post_event(queue, type, param);


// pick event by wait function
if(equeue_wait_event(queue, &type, &param, timeout) >= 0)
{
    switch(type)
    {
        case EV_EVENT1:
            //do someting ...
        break;
        case EV_EVENT2:
            //do someting ...
        break;
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions