Limit size of equeue for sigio net test

pull/5474/head
Sarah Marsh 2017-11-09 17:56:53 -06:00
parent 0d1dc83eb1
commit 8c5c905d95
1 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ void prep_buffer() {
void test_socket_attach() {
// Dispatch event queue
Thread eventThread;
EventQueue queue;
EventQueue queue(4*EVENTS_EVENT_SIZE);
eventThread.start(callback(&queue, &EventQueue::dispatch_forever));
printf("TCP client IP Address is %s\r\n", net->get_ip_address());
@ -139,7 +139,7 @@ void cb_pass() {
void test_socket_detach() {
// Dispatch event queue
Thread eventThread;
EventQueue queue;
EventQueue queue(4*EVENTS_EVENT_SIZE);
eventThread.start(callback(&queue, &EventQueue::dispatch_forever));
printf("TCP client IP Address is %s\r\n", net->get_ip_address());
@ -166,7 +166,7 @@ void test_socket_detach() {
void test_socket_reattach() {
// Dispatch event queue
Thread eventThread;
EventQueue queue;
EventQueue queue(4*EVENTS_EVENT_SIZE);
eventThread.start(callback(&queue, &EventQueue::dispatch_forever));
printf("TCP client IP Address is %s\r\n", net->get_ip_address());