Commit d8a35803 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

winhttp: Use a single thread pool wrapper callback for async tasks.

parent 670a1e81
......@@ -273,8 +273,16 @@ struct socket
BOOL last_receive_final;
};
typedef void (*TASK_CALLBACK)( void *ctx );
struct task_header
{
TASK_CALLBACK callback;
};
struct send_request
{
struct task_header task_hdr;
struct request *request;
WCHAR *headers;
DWORD headers_len;
......@@ -286,17 +294,20 @@ struct send_request
struct receive_response
{
struct task_header task_hdr;
struct request *request;
};
struct query_data
{
struct task_header task_hdr;
struct request *request;
DWORD *available;
};
struct read_data
{
struct task_header task_hdr;
struct request *request;
void *buffer;
DWORD to_read;
......@@ -305,6 +316,7 @@ struct read_data
struct write_data
{
struct task_header task_hdr;
struct request *request;
const void *buffer;
DWORD to_write;
......@@ -313,6 +325,7 @@ struct write_data
struct socket_send
{
struct task_header task_hdr;
struct socket *socket;
WINHTTP_WEB_SOCKET_BUFFER_TYPE type;
const void *buf;
......@@ -323,6 +336,7 @@ struct socket_send
struct socket_receive
{
struct task_header task_hdr;
struct socket *socket;
void *buf;
DWORD len;
......@@ -330,6 +344,7 @@ struct socket_receive
struct socket_shutdown
{
struct task_header task_hdr;
struct socket *socket;
USHORT status;
char reason[123];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment