1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-05 04:23:51 +03:00
Commit Graph

14 Commits

Author SHA1 Message Date
Andrew Tridgell
568b9175f3 r6147: The maxfd was being recalculated on every event loop, which made us
less scalable. It only needs to be recalculated when we the highest fd
is destroyed.
2007-10-10 13:11:22 -05:00
Jelmer Vernooij
2e1e8db6dc r5437: Allow Samba4 to be compiled by tcc (www.tinycc.org). It still crashes when linking though. 2007-10-10 13:10:45 -05:00
Stefan Metzmacher
b3d0a410ef r5407: - this patch makes samba's event loop code more generic and makes
using other implementations possible. This will be mostly usefull
  for client apps which have there own event loop and want to
  use our client libs

- add a example plugin for liboop (see http://liboop.org)
  NOTE: this just compiles and is completly untested
        and is commited only as example

metze
2007-10-10 13:10:42 -05:00
Stefan Metzmacher
67bf637e9a r5393: trigger timed events not to early, better do it a bit to late
metze
2007-10-10 13:09:50 -05:00
Stefan Metzmacher
dd77ec754b r5373: prepare infrastructure for maing different events
implementations possible

metze
2007-10-10 13:09:48 -05:00
Andrew Tridgell
7c379590b4 r5370: epoll gives more precise event bits like EPOLLHUP instead of just EPOLLIN. We need to map
these to "read" events for the events code to work on errors like connection refused
(thanks to vl for noticing this bug)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
9db6c79e90 r5298: - got rid of pstring.h from includes.h. This at least makes it a bit
less likely that anyone will use pstring for new code

 - got rid of winbind_client.h from includes.h. This one triggered a
   huge change, as winbind_client.h was including system/filesys.h and
   defining the old uint32 and uint16 types, as well as its own
   pstring and fstring.
2007-10-10 13:09:38 -05:00
Andrew Tridgell
6f79432fe6 r5296: - only include the tdb headers where they are needed
- removed the u32 hack in events.c as I think this was only needed as
  tdb.h defines u32. Metze, can you check that this hack is indeed no
  longer needed on your suse system?
2007-10-10 13:09:38 -05:00
Andrew Tridgell
e820fca506 r5292: ensure we cleanup the epoll_fd on event context destruction 2007-10-10 13:09:37 -05:00
Stefan Metzmacher
b4928f3ea8 r5284: this is needed on my server
+/* this #undef is needed on my SuSE 9.2 Box with glibc-devel-2.3.3-118 */
+#undef u32

as sys/epoll.h has this:
typedef union epoll_data
{
  void *ptr;
  int fd;
  uint32_t u32;
  uint64_t u64;
} epoll_data_t;

metze
2007-10-10 13:09:36 -05:00
Andrew Tridgell
34e1a3ad78 r5273: fixed another bug in the code that keeps timed events
sorted. Hopefully it really works now :-)
2007-10-10 13:09:35 -05:00
Andrew Tridgell
d89b493aaf r5217: avoid epoll_ctl() if the event flags are already set correctly 2007-10-10 13:09:32 -05:00
Andrew Tridgell
2d7242f2ec r5198: don't consider failure to remove an epoll event as enough reason to
fallback to select(). This can happen in too many situations.
2007-10-10 13:09:30 -05:00
Andrew Tridgell
7f54c8a339 r5197: moved events code to lib/events/ (suggestion from metze) 2007-10-10 13:09:30 -05:00