diff --git a/runtime/include/sandbox_functions.h b/runtime/include/sandbox_functions.h index 0e7962c..0ffa33c 100644 --- a/runtime/include/sandbox_functions.h +++ b/runtime/include/sandbox_functions.h @@ -28,6 +28,9 @@ sandbox_close_http(struct sandbox *sandbox) client_socket_close(sandbox->client_socket_descriptor, &sandbox->client_address); } +/** + * Remove the client fd from epoll + */ static inline void sandbox_remove_from_epoll(struct sandbox *sandbox) { diff --git a/runtime/include/sandbox_types.h b/runtime/include/sandbox_types.h index 9b3f455..d4c2b04 100644 --- a/runtime/include/sandbox_types.h +++ b/runtime/include/sandbox_types.h @@ -50,7 +50,7 @@ struct sandbox { struct arch_context ctxt; /* register context for context switch. */ uint64_t request_arrival_timestamp; /* Timestamp when request is received */ - uint64_t enqueue_timestamp; /* Timestamp when sandbox request is enqueued */ + uint64_t enqueue_timestamp; /* Timestamp when sandbox request is enqueued to the global queue*/ uint64_t allocation_timestamp; /* Timestamp when sandbox is allocated */ uint64_t response_timestamp; /* Timestamp when response is sent */ uint64_t completion_timestamp; /* Timestamp when sandbox runs to completion */ diff --git a/runtime/src/global_request_scheduler_minheap.c b/runtime/src/global_request_scheduler_minheap.c index c312405..a1c65a4 100644 --- a/runtime/src/global_request_scheduler_minheap.c +++ b/runtime/src/global_request_scheduler_minheap.c @@ -76,7 +76,6 @@ sandbox_request_get_priority_fn(void *element) */ void global_request_scheduler_minheap_initialize() -{ /* second parameter is set to true, means we will use lock for this queue since it is a global queue shared by all worker threads */ global_request_scheduler_minheap = priority_queue_initialize(4096, true, sandbox_request_get_priority_fn); struct global_request_scheduler_config config = {