Commit Graph

268 Commits

Author SHA1 Message Date
Nils O. Selåsdal 678378c2f4 Generate scons substitute info in top file 2013-10-28 19:02:47 +01: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 b0172a365e test uc_htable_clear. Add comments, fix uc_htable_next 2013-10-17 22:28:32 +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 ee3dd22b0e Convert logging to use UC_SRC_LOCATION 2013-10-16 01:44:36 +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 9c15b73774 Small optimization change when tickets < period 2013-10-15 20:14:15 +02:00
Nils O. Selåsdal c84d903b4f Assert that rate limit values are ok 2013-10-15 15:27:25 +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 3d93ec6091 Bump scaling to 1000.
Note the error in integer arithmetic
2013-10-12 01:28:20 +02:00
Nils O. Selåsdal 9ca4a354ee Fix calculating available tickets.
Help prevent overflow when there's long periods between calls
2013-10-10 01:06:49 +02:00
Nils O. Selåsdal 212fecae08 Move rate limit example to test/ 2013-10-09 22:59:47 +02:00
Nils O. Selåsdal 06083a054e Add rate limit API 2013-10-09 22:55:29 +02:00
Nils O. Selåsdal f2f2ed247f Add assert for correct state when removing timer 2013-10-05 00:55:21 +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 41c58589a5 Fix harmless off by one when walking file descriptors 2013-10-02 21:35:19 +02:00
Nils O. Selåsdal 27aa7ef3d6 Some comment improving 2013-10-02 21:33:10 +02:00
Nils O. Selåsdal d619d58ccd Fix overflow in strv_null_terminate, and don't make it increase .cnt 2013-10-01 22:30:39 +02:00
Nils O. Selåsdal dd517a5d85 Prefix CONTAINER_OF with UC_ 2013-09-28 23:45:51 +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 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 a5b8d53177 Fix goto label 2013-08-30 19:34:33 +02:00
Nils O. Selåsdal 1a85dd3231 Remove comments that was moved to .h file, rename goto label.. 2013-08-28 23:30:37 +02:00
Nils O. Selåsdal 110c843d9d Add supervisor 2013-08-28 23:25:02 +02:00
Nils O. Selåsdal 69b7cfc38f Remove unneeded #undef 2013-07-17 23:26:35 +02:00
Nils O. Selåsdal ea0accdadf Fix indent 2013-07-17 19:51:09 +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 6e3585e77c Remove a redundant assert.. 2013-07-12 20:42:05 +02:00
Nils O. Selåsdal c7d897c080 Enable some asserts for impossible conditions 2013-07-12 20:40:46 +02:00
Nils O. Selåsdal b6bd7fcaa6 Don't memmove the buffer content unless it's needed 2013-07-12 20:27:31 +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 1d01e6dc7e INdent properly 2013-07-07 22:14:56 +02:00
Nils O. Selåsdal 2bd5f9f5b9 Add DBuf , buffer API 2013-07-07 22:10:41 +02:00
Nils O. Selåsdal 65c32810cb Add test for uc_mbuf-copy_data 2013-07-02 21:22:38 +02:00
Nils O. Selåsdal bc65b3c421 Check for backtrace_fd returning NULL 2013-07-02 21:22:03 +02:00
Nils O. Selåsdal 6d77b78b41 use unsigned long long for uc_ms2tv() 2013-07-01 23:02:24 +02:00
Nils O. Selåsdal 764dfc563c Don't trt yo be smart with the comma operator 2013-07-01 23:00:19 +02:00
Nils O. Selåsdal bf9802e565 First iteration of mbuf, message buffer api 2013-06-30 21:42:02 +02:00
Nils O. Selåsdal 89232426e0 Properly use return value of select to count the number of events 2013-06-30 14:34:19 +02:00
Nils O. Selåsdal a8dcf6edff Get rid of inline warning from clang 2013-06-27 20:58:23 +02:00
Nils O. Selåsdal 4aadb0ab2d Clean up main logging function 2013-06-20 20:11:07 +02:00
Nils O. Selåsdal 84153e90db Make UC_LL_NONE work 2013-06-20 19:55:09 +02:00
Nils O. Selåsdal 012a5b1377 move iomux_impl.h to src/ dir, it's an implementation detail 2013-06-19 18:51:12 +02:00