mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-16 10:29:30 +00:00
Minor, reorder watchers a bit => same order in all functions
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
fac37512d5
commit
6439a34670
2 files changed
+7
-6
No files matched your search
@@ -245,17 +245,18 @@ int uev_exit(uev_ctx_t *ctx)
|
||||
continue;
|
||||
|
||||
switch (w->type) {
|
||||
case UEV_CRON_TYPE:
|
||||
case UEV_TIMER_TYPE:
|
||||
uev_timer_stop(w);
|
||||
case UEV_IO_TYPE:
|
||||
uev_io_stop(w);
|
||||
break;
|
||||
|
||||
case UEV_SIGNAL_TYPE:
|
||||
uev_signal_stop(w);
|
||||
break;
|
||||
|
||||
case UEV_IO_TYPE:
|
||||
uev_io_stop(w);
|
||||
case UEV_TIMER_TYPE:
|
||||
case UEV_CRON_TYPE:
|
||||
uev_timer_stop(w);
|
||||
break;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,9 +47,9 @@
|
||||
|
||||
/* Macros */
|
||||
#define uev_io_active(w) _uev_watcher_active(w)
|
||||
#define uev_signal_active(w) _uev_watcher_active(w)
|
||||
#define uev_timer_active(w) _uev_watcher_active(w)
|
||||
#define uev_cron_active(w) _uev_watcher_active(w)
|
||||
#define uev_signal_active(w) _uev_watcher_active(w)
|
||||
|
||||
/* Event watcher */
|
||||
typedef struct uev {
|
||||
|
||||
Reference in new issue
Block a user