mod_http3/include/h3_threads.h¶
Structs¶
| Name | |
|---|---|
| struct | worker_args |
Functions¶
| Name | |
|---|---|
| void *APR_THREAD_FUNC | worker_thread(apr_thread_t * thread, void * data) |
| void *APR_THREAD_FUNC | quic_event_thread(apr_thread_t * thread, void * data) |
Functions Documentation¶
function worker_thread¶
Parameters:
- thread The APR thread context.
- data Pointer to the struct worker_args arguments.
Return: NULL.
The entry point for the session worker thread. Services a single accepted HTTP/3 session, driving the HTTP/3 request processing and network I/O loop until completion or abort.
function quic_event_thread¶
Parameters:
- thread The APR thread context.
- data Pointer to the h3_io_t listener instance.
Return: NULL.
The entry point for the child listener event thread. Drives the main non-blocking select/event loop for accepting QUIC connections and processing handshakes for all pending connections.
Source code¶
/*
* Copyright (c) 2026 The mod_http3 Project Authors. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef H3_THREADS_H
#define H3_THREADS_H
#include "h3_io.h"
#include <apr_thread_proc.h>
struct worker_args
{
h3_io_t* io;
h3_session* session;
};
void* APR_THREAD_FUNC worker_thread(apr_thread_t* thread, void* data);
void* APR_THREAD_FUNC quic_event_thread(apr_thread_t* thread, void* data);
#endif /* H3_THREADS_H */