Commit Graph

110 Commits

Author SHA1 Message Date
Nils O. Selåsdal 9c440723e8 Add C++ guards 2013-11-14 13:30:21 +01:00
Nils O. Selåsdal 8fd26cd810 Add a compiler and hardware memory barrier macro 2013-11-13 23:18:42 +01:00
Nils O. Selåsdal 6b26812cf3 Only do one event at a time to a callback. 2013-11-09 11:06:19 +01:00
Nils O. Selåsdal 9f563c0c7e Reorder macro to be more consistent 2013-11-05 15:04:58 +01:00
Nils O. Selåsdal eceda7be70 Generalize the backing type of bitvec 2013-10-28 23:21:26 +01:00
Nils O. Selåsdal a5c984e00b Merge branch 'dev' 2013-10-27 13:33:56 +01:00
Nils O. Selåsdal 08fa852cf6 Merge branch 'master' of ssh://box.fiane.intra/var/lib/git/libucore 2013-10-27 13:25:17 +01:00
Nils O. Selåsdal 8a44b591de Docs for mbuf.flags 2013-10-26 23:00:32 +02:00
Nils O. Selåsdal 0acb4789b0 Add FOREACH_SAFE macros + tests 2013-10-24 22:13:16 +02:00
Nils O. Selåsdal 45ecb3c1e0 Revert "Add iterator API". Will try to find a better API
This reverts commit 821399a61b.
2013-10-24 21:28:35 +02:00
Nils O. Selåsdal 821399a61b Add iterator API 2013-10-24 21:27:31 +02:00
Nils O. Selåsdal 49503804dd Allow user to always (not just in debug mode) compile in UC_DEBUGXXX
log calls by defining UC_DEBUG_ALWAYS
2013-10-23 22:07:58 +02:00
Nils O. Selåsdal 2cd5d9d7a9 Comment the FOREACH macros 2013-10-18 19:43:05 +02:00
Nils O. Selåsdal 7ff33c113b Test UC_HTABLE_FOR_EACH 2013-10-17 22:38:00 +02:00
Nils O. Selåsdal 0f0ae6dd1e Add uc_htable_remove + test 2013-10-17 22:12:48 +02:00
Nils O. Selåsdal 4b13f1f1c9 Merge branch 'dev' of /var/lib/git/libucore into dev 2013-10-17 21:00:32 +02:00
Nils O. Selåsdal 987db2d096 First iteration of hash table 2013-10-17 21:00:05 +02:00
Nils O. Selåsdal 262958b8a0 Rework rate limit to only refill when needed 2013-10-16 19:22:53 +02:00
Nils O. Selåsdal 2d680052b2 Fix UC_DEBUGF 2013-10-16 01:46:50 +02:00
Nils O. Selåsdal ee3dd22b0e Convert logging to use UC_SRC_LOCATION 2013-10-16 01:44:36 +02:00
Nils O. Selåsdal 13567e3cd9 Add macro for stringifying __FILE__:__LINE__ 2013-10-16 01:37:20 +02:00
Nils O. Selåsdal 934088ca4a Remove ticket_cost member as it is no longer needed 2013-10-15 22:31:57 +02:00
Nils O. Selåsdal 0a36c669c6 More ratelimit optimizations 2013-10-15 21:35:10 +02:00
Nils O. Selåsdal 28514c0a57 More limits clarification 2013-10-15 15:44:12 +02:00
Nils O. Selåsdal f4e7ad0fe6 Note the limits on tickets and period 2013-10-15 15:23:32 +02:00
Nils O. Selåsdal 763032fb04 Greatly improve the rate limit algorithm, so it is correct for a low
ticket to period ratio.
2013-10-15 15:03:27 +02:00
Nils O. Selåsdal 41bb24bb61 Delete the silly bitvec _s functions 2013-10-14 19:01:56 +02:00
Nils O. Selåsdal 6058be1c07 Fix UC_STATIC_ASSERT 2013-10-14 18:03:17 +02:00
Nils O. Selåsdal 48678a9858 Use consisten header guard, prefixed with UC_ 2013-10-13 17:37:28 +02:00
Nils O. Selåsdal 3d93ec6091 Bump scaling to 1000.
Note the error in integer arithmetic
2013-10-12 01:28:20 +02:00
Nils O. Selåsdal 8a76210661 Comment rate_limit.h 2013-10-11 23:54:37 +02:00
Nils O. Selåsdal 06083a054e Add rate limit API 2013-10-09 22:55:29 +02:00
Nils O. Selåsdal 08a50d8cfe fix UC_ASSERT writing to wrong fd, and unterminated if
log more in UC_NOTREACHED
2013-10-08 17:39:44 +02:00
Nils O. Selåsdal 425062ad18 Add needed include files 2013-10-08 17:34:58 +02:00
Nils O. Selåsdal bb5e21d29b add static strvec initializer macradd static strvec initializer macroo 2013-10-05 20:36:11 +02:00
Nils O. Selåsdal d9517ad868 Make the thread queue walk function take a cookie to the callback
and implement a _clear() function to clear out the queue
2013-10-03 22:04:33 +02:00
Nils O. Selåsdal 4310414b49 More comments in string.h 2013-10-02 22:17:15 +02:00
Nils O. Selåsdal dd517a5d85 Prefix CONTAINER_OF with UC_ 2013-09-28 23:45:51 +02:00
Nils O. Selåsdal ff0fd32ae1 Fix comment 2013-09-26 22:22:19 +02:00
Nils O. Selåsdal 9988d8f4c0 Add uc_str_append_all function 2013-09-15 00:01:19 +02:00
Nils O. Selåsdal 03d700595b Improve docus 2013-09-15 00:01:08 +02:00
Nils O. Selåsdal 9e919c1cde Add mbuf documentation. have mbuf_free handle NULL pointer 2013-09-13 21:42:32 +02:00
Nils O. Selåsdal 216dfe879d Added string vector(argv like) functions 2013-09-04 18:10:26 +02:00
Nils O. Selåsdal 110c843d9d Add supervisor 2013-08-28 23:25:02 +02:00
Nils O. Selåsdal 13108f1f48 Add doxygen groups 2013-07-31 03:37:50 +02:00
Nils O. Selåsdal 679b4b12e5 Fix UC_ATOMIC_ADD 2013-07-19 20:53:36 +02:00
Nils O. Selåsdal 7a968ee77a Nuke the base64 code. It was wrong 2013-07-12 21:13:22 +02:00
Nils O. Selåsdal b475fae56b Add uc_set_tcp_keepalive_cfg too set keepalive options 2013-07-08 22:15:56 +02:00
Nils O. Selåsdal e1f16b3603 Correct spelling mistakes in comments 2013-07-07 22:28:41 +02:00
Nils O. Selåsdal 2bd5f9f5b9 Add DBuf , buffer API 2013-07-07 22:10:41 +02:00