From 04d3c9224fa7f1ea78484fc5b56ae6908241213d Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 23 May 2009 06:07:04 +0000 Subject: An application that has own events and file descriptors, must poll select function ob libbsc. A "polling" flag is used to enable polling. In this case select() will not sleep until file descriptor events occurr or nearest timer expires. Also a return value will indicate if there was an event that has been handled. If there was an event, the application decides to poll again and don't wait. In case for bsc_hack, the polling flag is not set. select will sleep as usual. (Andreas Eversberg) --- include/openbsc/select.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/openbsc/select.h b/include/openbsc/select.h index b677162e6..c2af1d787 100644 --- a/include/openbsc/select.h +++ b/include/openbsc/select.h @@ -18,5 +18,5 @@ struct bsc_fd { int bsc_register_fd(struct bsc_fd *fd); void bsc_unregister_fd(struct bsc_fd *fd); -int bsc_select_main(void); +int bsc_select_main(int polling); #endif /* _BSC_SELECT_H */ -- cgit v1.2.3