From 7a010b10f7148ce42cead66f9dd4b7901b448418 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 6 Apr 2019 13:46:40 +0200 Subject: select: Make file descriptor lists per-thread In a multi-threaded environemnt, it's likely that each thread will have its own, distinct set of file descriptors that it wants to watch. Hence, let's make the osmo_fd_* functions configure not one global list of file descriptors, but a thread-local list of file descriptors. Change-Id: I5082ed3e500ad1a7516e1785bc57e008da2fac9a --- include/osmocom/core/select.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/osmocom/core/select.h b/include/osmocom/core/select.h index a200b6f3..92904e2f 100644 --- a/include/osmocom/core/select.h +++ b/include/osmocom/core/select.h @@ -52,6 +52,7 @@ void osmo_fd_unregister(struct osmo_fd *fd); void osmo_fd_close(struct osmo_fd *fd); int osmo_select_main(int polling); int osmo_select_main_ctx(int polling); +void osmo_select_init(void); struct osmo_fd *osmo_fd_get_by_fd(int fd); -- cgit v1.2.3