| /libevent-2.1.12/ |
| H A D | evthread.c | 190 int count; member 211 result->count = 0; in debug_lock_alloc() 220 EVUTIL_ASSERT(lock->count == 0); in debug_lock_free() 228 lock->count = -100; in debug_lock_free() 237 ++lock->count; in evthread_debug_lock_mark_locked() 243 if (lock->count > 1) in evthread_debug_lock_mark_locked() 278 if (lock->count == 1) in evthread_debug_lock_mark_unlocked() 281 --lock->count; in evthread_debug_lock_mark_unlocked() 348 if (! lock->count) in evthread_is_debug_lock_held_() 395 lock->count = 0; in evthread_setup_global_lock_() [all …]
|
| H A D | mm-internal.h | 58 void *event_mm_calloc_(size_t count, size_t size); 76 #define mm_calloc(count, size) event_mm_calloc_((count), (size)) argument
|
| H A D | event_tagging.c | 206 size_t count = 0; in decode_tag_internal() local 218 while (count++ < len) { in decode_tag_internal() 240 evbuffer_drain(evbuf, count); in decode_tag_internal() 245 return count > INT_MAX ? INT_MAX : (int)(count); in decode_tag_internal()
|
| H A D | arc4random.c | 129 read_all(int fd, unsigned char *buf, size_t count) in read_all() argument 134 while (numread < count) { in read_all() 135 result = read(fd, buf+numread, count-numread); in read_all()
|
| H A D | event.c | 1639 int count = 0; in event_process_active_single_queue() local 1667 ++count; in event_process_active_single_queue() 1739 return count; in event_process_active_single_queue() 1740 if (count && endtime) { in event_process_active_single_queue() 1745 return count; in event_process_active_single_queue() 1750 return count; in event_process_active_single_queue() 3502 size_t sz = count * size; in event_mm_calloc_() 3967 int count; in event_base_assert_ok_nolock_() local 4001 count = 0; in event_base_assert_ok_nolock_() 4008 ++count; in event_base_assert_ok_nolock_() [all …]
|
| H A D | event-internal.h | 427 void event_active_nolock_(struct event *ev, int res, short count);
|
| H A D | buffer.c | 1548 size_t count = 0; in evbuffer_strspn() local 1565 ptr->pos += count; in evbuffer_strspn() 1566 return count; in evbuffer_strspn() 1568 ++count; in evbuffer_strspn() 1575 ptr->pos += count; in evbuffer_strspn() 1576 return count; in evbuffer_strspn()
|
| H A D | evdns.c | 2306 nameserver_probe_callback(int result, char type, int count, int ttl, void *addresses, void *arg) { in nameserver_probe_callback() argument 2309 (void) count; in nameserver_probe_callback() 2772 int count = 0; in string_num_dots() local 2775 count++; in string_num_dots() 2777 return count; in string_num_dots() 4458 evdns_getaddrinfo_gotresolve(int result, char type, int count, in evdns_getaddrinfo_gotresolve() argument 4521 if (count == 0) in evdns_getaddrinfo_gotresolve() 4595 for (i=0; i < count; ++i) { in evdns_getaddrinfo_gotresolve()
|
| H A D | ChangeLog | 93 to tune SO_RCVBUF/SO_SNDBUF in evdns, but one can count it as a bug-fix on 873 o Add access to max event count stats (5173bef, efbd3dc, 26230a2 1004 o When we seed from /proc/sys/kernel/random/uuid, count it as success 1418 o When we seed from /proc/sys/kernel/random/uuid, count it as success (e35b540)
|
| H A D | ChangeLog-2.0 | 441 o Correctly count req->body_size on http usage without Content-Length (8e342e5) 702 o Make test-changelist count cpu usage right on win32 (ea1ea3d)
|
| /libevent-2.1.12/test/ |
| H A D | regress_finalize.c | 234 int count; member 240 evc->count += 100; in event_finalize_callback_2() 249 ++ evc->count; in timer_callback_2() 261 evc1.count = evc2.count = 0; in test_fin_within_cb() 272 tt_int_op(evc1.count, ==, 101); in test_fin_within_cb() 273 tt_int_op(evc2.count, ==, 100); in test_fin_within_cb() 277 evc1.count = evc2.count = 0; in test_fin_within_cb() 285 tt_int_op(evc1.count, ==, 101); in test_fin_within_cb() 286 tt_int_op(evc2.count, ==, 100); in test_fin_within_cb()
|
| H A D | bench.c | 68 static ev_ssize_t count, fired; variable 85 count += n; in read_cb() 121 count = 0; in run_once() 129 } while (count != fired); in run_once() 132 if (xcount != count) in run_once() 134 xcount, count); in run_once()
|
| H A D | regress_listener.c | 161 int count = 1; in regress_listener_error() local 172 listener = evconnlistener_new(base, acceptcb, &count, in regress_listener_error() 182 tt_int_op(count,==,1000); /* set by error cb */ in regress_listener_error() 210 int count = 1; in regress_listener_close_accepted_fd() local 220 listener = evconnlistener_new_bind(base, acceptcb_free, &count, in regress_listener_close_accepted_fd() 243 int count = 1; in regress_listener_immediate_close() local 253 listener = evconnlistener_new_bind(base, acceptcb, &count, in regress_listener_immediate_close() 265 tt_int_op(count, ==, 0); in regress_listener_immediate_close()
|
| H A D | regress.c | 640 (*count)++; in periodic_timeout_cb() 654 int count = 0; in test_persistent_timeout() local 761 int count; member 768 ++ti->count; in common_timeout_cb() 1932 int count; member 2202 int count; member 2260 if (one.count == 3 && two.count == 3) in test_priorities_impl() 2264 if (one.count == 3 && two.count == 1) in test_priorities_impl() 2267 if (one.count == 3 && two.count == 0) in test_priorities_impl() 3183 int count; member [all …]
|
| H A D | regress_dns.c | 133 for (i = 0; i < count; ++i) in dns_gethostbyname_cb() 139 if (count != 1) in dns_gethostbyname_cb() 314 if (count != 1) { in dns_server_gethostbyname_cb() 476 int count; member 491 res->count = count; in generic_dns_callback() 495 len = count * 4; in generic_dns_callback() 497 len = count * 16; in generic_dns_callback() 696 int *count = data; in fail_server_cb() local 700 if (*count > 0) { in fail_server_cb() 701 --*count; in fail_server_cb() [all …]
|
| H A D | regress_iocp.c | 59 static int count = 0; variable 85 count++; in count_incr() 98 while (ms > 0 && count != i) { in count_wait_for() 106 if (count == i) in count_wait_for()
|
| H A D | regress_thread.c | 96 static int count; variable 127 ++count; in basic_thread() 133 if (count >= NUM_THREADS * NUM_ITERATIONS) in basic_thread() 243 tt_int_op(count, ==, NUM_THREADS * NUM_ITERATIONS); in thread_basic()
|
| /libevent-2.1.12/sample/ |
| H A D | dns-example.c | 59 main_callback(int result, char type, int count, int ttl, in main_callback() argument 63 for (i = 0; i < count; ++i) { in main_callback() 70 if (!count) { in main_callback()
|
| /libevent-2.1.12/include/event2/ |
| H A D | dns.h | 229 typedef void (*evdns_callback_type) (int result, char type, int count, int ttl, void *addresses, vo…
|