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

event_set deprecated #2287

Open
stockxiay opened this issue Sep 9, 2024 · 0 comments
Open

event_set deprecated #2287

stockxiay opened this issue Sep 9, 2024 · 0 comments

Comments

@stockxiay
Copy link

in libevnt v2.x
/**
Prepare an event structure to be added.

@deprecated event_set() is not recommended for new code, because it requires
a subsequent call to event_base_set() to be safe under most circumstances.
Use event_assign() or event_new() instead.
*/
EVENT2_EXPORT_SYMBOL
void event_set(struct event , evutil_socket_t, short, void ()(evutil_socket_t, short, void *), void *);

but folly/io/async/EventBaseBackendBase.h L185 call it ? Can event_assign be used?

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

No branches or pull requests

1 participant