mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-23 11:24:34 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b3d6a3802 | ||
|
|
f819d658fb | ||
|
|
5851282d1a | ||
|
|
deef49f85f | ||
|
|
b4b021b21f | ||
|
|
d7fd789378 | ||
|
|
b26eea6442 | ||
|
|
6c467cd594 | ||
|
|
86e01be26e | ||
|
|
5fd29f7241 | ||
|
|
8d07cc616e | ||
|
|
9db9daec07 | ||
|
|
af1a484c46 | ||
|
|
1e6395a85a |
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
Current maintainer of libuEv:
|
Current maintainer of libuEv:
|
||||||
Joachim Nilsson <troglobit()gmail!com>
|
Joachim Wiberg <troglobit()gmail!com>
|
||||||
|
|
||||||
Original LibUEvent author:
|
Original LibUEvent author:
|
||||||
Flemming Madsen <flemming!madsen()madsensoft!dk>
|
Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
+22
-1
@@ -3,6 +3,25 @@ Change Log
|
|||||||
|
|
||||||
All notable changes to the project are documented in this file.
|
All notable changes to the project are documented in this file.
|
||||||
|
|
||||||
|
[v2.3.2][] - 2021-02-12
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
- Copyright updates, including LICENSE file, year + author last name
|
||||||
|
- Add tar.gz archives to distribution
|
||||||
|
- Enable .sha256 checksums for all tarballs
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- Debian packaging fixes only
|
||||||
|
|
||||||
|
|
||||||
|
[v2.3.1][] - 2020-02-22
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
- Debian packaging fixes only
|
||||||
|
|
||||||
|
|
||||||
[v2.3.0][] - 2019-04-06
|
[v2.3.0][] - 2019-04-06
|
||||||
-----------------------
|
-----------------------
|
||||||
@@ -392,7 +411,9 @@ v0.0.1 - 2012-03-17
|
|||||||
Lua users mailing list.
|
Lua users mailing list.
|
||||||
|
|
||||||
|
|
||||||
[UNRELEASED]: https://github.com/troglobit/libuev/compare/v2.3.0...HEAD
|
[UNRELEASED]: https://github.com/troglobit/libuev/compare/v2.3.2...HEAD
|
||||||
|
[v2.3.2]: https://github.com/troglobit/libuev/compare/v2.3.1...v2.3.2
|
||||||
|
[v2.3.1]: https://github.com/troglobit/libuev/compare/v2.3.0...v2.3.1
|
||||||
[v2.3.0]: https://github.com/troglobit/libuev/compare/v2.2.0...v2.3.0
|
[v2.3.0]: https://github.com/troglobit/libuev/compare/v2.2.0...v2.3.0
|
||||||
[v2.2.0]: https://github.com/troglobit/libuev/compare/v2.1.3...v2.2.0
|
[v2.2.0]: https://github.com/troglobit/libuev/compare/v2.1.3...v2.2.0
|
||||||
[v2.1.3]: https://github.com/troglobit/libuev/compare/v2.1.2...v2.1.3
|
[v2.1.3]: https://github.com/troglobit/libuev/compare/v2.1.2...v2.1.3
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
Copyright (c) 2013-2019 Joachim Nilsson <troglobit()gmail!com>
|
Copyright (c) 2013-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+20
-16
@@ -8,20 +8,9 @@ if ENABLE_EXAMPLES
|
|||||||
SUBDIRS += examples
|
SUBDIRS += examples
|
||||||
endif
|
endif
|
||||||
|
|
||||||
## Generate .deb package
|
|
||||||
package:
|
|
||||||
@dpkg-buildpackage -uc -us -B
|
|
||||||
|
|
||||||
## Generate MD5 checksum file
|
|
||||||
MD5 = md5sum
|
|
||||||
md5-dist:
|
|
||||||
@for file in $(DIST_ARCHIVES); do \
|
|
||||||
$(MD5) $$file > $$file.md5; \
|
|
||||||
done
|
|
||||||
|
|
||||||
## Check if tagged in git
|
## Check if tagged in git
|
||||||
release-hook:
|
release-hook:
|
||||||
if [ ! `git tag | grep $(PACKAGE_VERSION)` ]; then \
|
@if [ ! `git tag | grep $(PACKAGE_VERSION)` ]; then \
|
||||||
echo; \
|
echo; \
|
||||||
printf "\e[1m\e[41mCannot find release tag $(PACKAGE_VERSION)\e[0m\n"; \
|
printf "\e[1m\e[41mCannot find release tag $(PACKAGE_VERSION)\e[0m\n"; \
|
||||||
printf "\e[1m\e[5mDo release anyway?\e[0m "; read yorn; \
|
printf "\e[1m\e[5mDo release anyway?\e[0m "; read yorn; \
|
||||||
@@ -37,10 +26,25 @@ release-hook:
|
|||||||
echo; \
|
echo; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## Generate .deb package
|
||||||
|
package:
|
||||||
|
@debuild -uc -us -B --lintian-opts --profile debian -i -I --show-overrides
|
||||||
|
|
||||||
## Target to run when building a release
|
## Target to run when building a release
|
||||||
release: distcheck release-hook md5-dist
|
release: release-hook distcheck package
|
||||||
@for file in $(DIST_ARCHIVES); do \
|
@for file in $(DIST_ARCHIVES); do \
|
||||||
printf "$$file \tDistribution tarball\n"; \
|
md5sum $$file > ../$$file.md5; \
|
||||||
printf "$$file.md5\t"; cat $$file.md5 | cut -f1 -d' '; \
|
sha256sum $$file > ../$$file.sha256; \
|
||||||
mv $$file* ../; \
|
done
|
||||||
|
@mv $(DIST_ARCHIVES) ../
|
||||||
|
@echo
|
||||||
|
@echo "Resulting release files:"
|
||||||
|
@echo "================================================================="
|
||||||
|
@for file in $(DIST_ARCHIVES); do \
|
||||||
|
printf "%-32s Distribution tarball\n" $$file; \
|
||||||
|
printf "%-32s " $$file.md5; cat ../$$file.md5 | cut -f1 -d' '; \
|
||||||
|
printf "%-32s " $$file.sha256; cat ../$$file.sha256 | cut -f1 -d' '; \
|
||||||
|
done
|
||||||
|
@for file in `cd ..; ls $(PACKAGE)*_$(VERSION)*`; do \
|
||||||
|
printf "%-32s Debian/Ubuntu package\n" $$file; \
|
||||||
done
|
done
|
||||||
@@ -94,7 +94,7 @@ not need them.)
|
|||||||
Origin & References
|
Origin & References
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
[libuEv][] is developed and maintained by [Joachim Nilsson][] on GitHub.
|
[libuEv][] is developed and maintained by [Joachim Wiberg][] on GitHub.
|
||||||
It is primarily built for and developed on GNU/Linux systems, patches to
|
It is primarily built for and developed on GNU/Linux systems, patches to
|
||||||
support the BSD [kqueue][] interface are most welcome.
|
support the BSD [kqueue][] interface are most welcome.
|
||||||
|
|
||||||
@@ -118,5 +118,5 @@ inspiration also from [picoev][] by [Oku Kazuho][].
|
|||||||
[kqueue]: https://github.com/mheily/libkqueue
|
[kqueue]: https://github.com/mheily/libkqueue
|
||||||
[Oku Kazuho]: https://github.com/kazuho
|
[Oku Kazuho]: https://github.com/kazuho
|
||||||
[Mark Lehmann]: http://software.schmorp.de
|
[Mark Lehmann]: http://software.schmorp.de
|
||||||
[Joachim Nilsson]: http://troglobit.com
|
[Joachim Wiberg]: http://troglobit.com
|
||||||
[Flemming Madsen]: http://www.madsensoft.dk
|
[Flemming Madsen]: http://www.madsensoft.dk
|
||||||
+4
-2
@@ -1,5 +1,6 @@
|
|||||||
AC_INIT(libuev, 2.3.0, https://github.com/troglobit/libuev/issues)
|
AC_INIT(libuev, 2.3.2, https://github.com/troglobit/libuev/issues)
|
||||||
AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
|
AC_CONFIG_AUX_DIR(aux)
|
||||||
|
AM_INIT_AUTOMAKE([1.11 foreign dist-xz])
|
||||||
AM_SILENT_RULES([yes])
|
AM_SILENT_RULES([yes])
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(src/uev.c)
|
AC_CONFIG_SRCDIR(src/uev.c)
|
||||||
@@ -8,6 +9,7 @@ AC_CONFIG_FILES([Makefile src/libuev.pc src/Makefile examples/Makefile tests/Mak
|
|||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
AC_PROG_INSTALL
|
||||||
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
||||||
LT_INIT
|
LT_INIT
|
||||||
|
|
||||||
|
|||||||
Vendored
+14
@@ -1,3 +1,17 @@
|
|||||||
|
libuev (2.3.2) stable; urgency=low
|
||||||
|
|
||||||
|
* Copyright updates, including LICENSE file, year + author last name
|
||||||
|
* Debian packaging fixes, including a .symbols file
|
||||||
|
|
||||||
|
-- Joachim Wiberg <troglobit@gmail.com> Fri, 12 Feb 2021 09:36:39 +0100
|
||||||
|
|
||||||
|
libuev (2.3.1) stable; urgency=high
|
||||||
|
|
||||||
|
* Step library name to match SONAME, found by lintian
|
||||||
|
* Update Build-Depends to debhelper >= 10, drop other deps
|
||||||
|
|
||||||
|
-- Joachim Nilsson <troglobit@gmail.com> Sat, 22 Feb 2020 15:50:06 +0100
|
||||||
|
|
||||||
libuev (2.3.0) unstable; urgency=medium
|
libuev (2.3.0) unstable; urgency=medium
|
||||||
|
|
||||||
* Support for Linux eventfd, uev_event_*(), see API.md for details.
|
* Support for Linux eventfd, uev_event_*(), see API.md for details.
|
||||||
|
|||||||
Vendored
+8
-5
@@ -1,18 +1,18 @@
|
|||||||
Source: libuev
|
Source: libuev
|
||||||
Section: libs
|
Section: libs
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Joachim Nilsson <troglobit@gmail.com>
|
Maintainer: Joachim Wiberg <troglobit@gmail.com>
|
||||||
Build-Depends: dpkg-dev (>= 1.14.9), debhelper (>= 9), dh-autoreconf
|
Build-Depends: debhelper (>= 10), libtool
|
||||||
Standards-Version: 4.3.0
|
Standards-Version: 4.3.0
|
||||||
Homepage: https://github.com/troglobit/libuev/
|
Homepage: https://github.com/troglobit/libuev/
|
||||||
Vcs-Browser: https://github.com/troglobit/libuev/
|
Vcs-Browser: https://github.com/troglobit/libuev/
|
||||||
Vcs-Git: https://github.com/troglobit/libuev.git
|
Vcs-Git: https://github.com/troglobit/libuev.git
|
||||||
|
|
||||||
Package: libuev-dev
|
Package: libuev-dev
|
||||||
Priority: extra
|
Priority: optional
|
||||||
Section: libdevel
|
Section: libdevel
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${misc:Depends}, libuev (= ${binary:Version})
|
Depends: ${misc:Depends}, libuev2 (= ${binary:Version})
|
||||||
Description: static library, header files, and docs for libuev
|
Description: static library, header files, and docs for libuev
|
||||||
Static library, header files, and documentation for libuEv
|
Static library, header files, and documentation for libuEv
|
||||||
.
|
.
|
||||||
@@ -24,7 +24,10 @@ Description: static library, header files, and docs for libuev
|
|||||||
Experienced developers may appreciate libuEv is built on top of modern
|
Experienced developers may appreciate libuEv is built on top of modern
|
||||||
Linux APIs like epoll, eventfd, timerf, and signalfd.
|
Linux APIs like epoll, eventfd, timerf, and signalfd.
|
||||||
|
|
||||||
Package: libuev
|
Package: libuev2
|
||||||
|
Replaces: libuev
|
||||||
|
Conflicts: libuev
|
||||||
|
Provides: libuev
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
Description: Lightweight event loop library for Linux
|
Description: Lightweight event loop library for Linux
|
||||||
|
|||||||
Vendored
+3
-3
@@ -6,15 +6,15 @@ Comment: Debianized by upstream on Mon, Nov 28 2016 23:23:17 +0100
|
|||||||
|
|
||||||
Files: *
|
Files: *
|
||||||
Copyright: 2012 Flemming Madsen <flemming.madsen@madsensoft.dk>
|
Copyright: 2012 Flemming Madsen <flemming.madsen@madsensoft.dk>
|
||||||
2013-2019 Joachim Nilsson <troglobit@gmail.com>
|
2013-2021 Joachim Wiberg <troglobit@gmail.com>
|
||||||
License: MIT
|
License: MIT
|
||||||
|
|
||||||
Files: debian/*
|
Files: debian/*
|
||||||
Copyright: 2016-2019 Joachim Nilsson <troglobit@gmail.com>
|
Copyright: 2016-2021 Joachim Wiberg <troglobit@gmail.com>
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
Copyright (c) 2013-2019 Joachim Nilsson <troglobit()gmail!com>
|
Copyright (c) 2013-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
.
|
.
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
Vendored
+30
@@ -0,0 +1,30 @@
|
|||||||
|
libuev.so.2 libuev2 #MINVER#
|
||||||
|
* Build-Depends-Package: libite-dev
|
||||||
|
_uev_watcher_active@Base 2.3.0
|
||||||
|
_uev_watcher_init@Base 2.3.0
|
||||||
|
_uev_watcher_rearm@Base 2.3.0
|
||||||
|
_uev_watcher_start@Base 2.3.0
|
||||||
|
_uev_watcher_stop@Base 2.3.0
|
||||||
|
uev_cron_init@Base 2.3.0
|
||||||
|
uev_cron_set@Base 2.3.0
|
||||||
|
uev_cron_start@Base 2.3.0
|
||||||
|
uev_cron_stop@Base 2.3.0
|
||||||
|
uev_event_init@Base 2.3.0
|
||||||
|
uev_event_post@Base 2.3.0
|
||||||
|
uev_event_stop@Base 2.3.0
|
||||||
|
uev_exit@Base 2.3.0
|
||||||
|
uev_init1@Base 2.3.0
|
||||||
|
uev_init@Base 2.3.0
|
||||||
|
uev_io_init@Base 2.3.0
|
||||||
|
uev_io_set@Base 2.3.0
|
||||||
|
uev_io_start@Base 2.3.0
|
||||||
|
uev_io_stop@Base 2.3.0
|
||||||
|
uev_run@Base 2.3.0
|
||||||
|
uev_signal_init@Base 2.3.0
|
||||||
|
uev_signal_set@Base 2.3.0
|
||||||
|
uev_signal_start@Base 2.3.0
|
||||||
|
uev_signal_stop@Base 2.3.0
|
||||||
|
uev_timer_init@Base 2.3.0
|
||||||
|
uev_timer_set@Base 2.3.0
|
||||||
|
uev_timer_start@Base 2.3.0
|
||||||
|
uev_timer_stop@Base 2.3.0
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Simple example of how to use libuEv with Linux joystick API
|
/* Simple example of how to use libuEv with Linux joystick API
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014-2019 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2014-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Micro event loop library
|
/* libuEv - Micro event loop library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013-2019 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Micro event loop library
|
/* libuEv - Micro event loop library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013-2019 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Micro event loop library
|
/* libuEv - Micro event loop library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013-2019 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Private methods and data types, do not use directly!
|
/* libuEv - Private methods and data types, do not use directly!
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013-2019 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Micro event loop library
|
/* libuEv - Micro event loop library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013-2019 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+14
-8
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Micro event loop library
|
/* libuEv - Micro event loop library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013-2019 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -49,18 +49,24 @@ static void msec2tspec(int msec, struct timespec *ts)
|
|||||||
* @param timeout Timeout in milliseconds before @param cb is called
|
* @param timeout Timeout in milliseconds before @param cb is called
|
||||||
* @param period For periodic timers this is the period time that @param timeout is reset to
|
* @param period For periodic timers this is the period time that @param timeout is reset to
|
||||||
*
|
*
|
||||||
* For one-shot timers you set @param period to zero and only use @param
|
* This function creates, and optionally starts, a timer watcher. There
|
||||||
* timeout. For periodic timers you likely set @param timeout to either
|
* are two types of timers: one-shot and periodic.
|
||||||
* zero, to call it as soon as the event loop starts, or to the same
|
*
|
||||||
* value as @param period. When the timer expires, the @param cb
|
* One-shot timers only use @param timeout, @param period is zero.
|
||||||
* is called, with the optional @param arg argument. A non-periodic
|
*
|
||||||
* timer ends its life there, while a periodic task's @param timeout is
|
* Periodic timers can either start their life disabled, with @param
|
||||||
* reset to the @param period and restarted.
|
* timeout set to zero, or with the same value as @param period.
|
||||||
|
*
|
||||||
|
* When the timeout expires, for either of the two types, @param cb is
|
||||||
|
* called, with the optional @param arg argument. A one-shot timer ends
|
||||||
|
* its life there, while a periodic task's @param timeout is reset to
|
||||||
|
* the @param period and restarted.
|
||||||
*
|
*
|
||||||
* A timer is automatically started if the event loop is already
|
* A timer is automatically started if the event loop is already
|
||||||
* running, otherwise it is kept on hold until triggered by calling
|
* running, otherwise it is kept on hold until triggered by calling
|
||||||
* uev_run().
|
* uev_run().
|
||||||
*
|
*
|
||||||
|
* @see uev_timer_set
|
||||||
* @return POSIX OK(0) or non-zero with @param errno set on error.
|
* @return POSIX OK(0) or non-zero with @param errno set on error.
|
||||||
*/
|
*/
|
||||||
int uev_timer_init(uev_ctx_t *ctx, uev_t *w, uev_cb_t *cb, void *arg, int timeout, int period)
|
int uev_timer_init(uev_ctx_t *ctx, uev_t *w, uev_cb_t *cb, void *arg, int timeout, int period)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Micro event loop library
|
/* libuEv - Micro event loop library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013-2019 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Micro event loop library
|
/* libuEv - Micro event loop library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013-2019 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
/* Test libuEv event library
|
/* Test libuEv event library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013-2019 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Test cron API in libuEv event library
|
/* Test cron API in libuEv event library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2016-2019 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2016-2021 Joachim Wiberg <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Verifies eventfd support
|
/* Verifies eventfd support
|
||||||
*
|
*
|
||||||
* Copyright (c) 2018-2019 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2018-2021 Joachim Wiberg <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Multiple signals, segfault and fork() to test sub-processes.
|
/* Multiple signals, segfault and fork() to test sub-processes.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2015-2019 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2015-2021 Joachim Wiberg <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
Reference in new issue
Block a user