Hi,
I failed with this on windows with branch 2.4.x, in a handle hook,
apr_os_thread_t t = apr_os_thread_current();
apr_os_thread_t *t1;
apr_os_thread_get(&t1, r->connection->current_thread);
printf("EQUALS %d\n",apr_os_thread_equal(t,t1));
I think t and t1 must be equal, But it Not.
I thin
On 11/15/2011 7:43 AM, zhiguo zhao wrote:
Hi,
I failed with this on windows with branch 2.4.x, in a handle hook,
apr_os_thread_t t = apr_os_thread_current();
apr_os_thread_t *t1;
apr_os_thread_get(&t1, r->connection->current_thread);
printf("EQUALS %d\n",apr_os_thread_equal(t,t1));
I thin
Why not.
In mpm\winnt\child.c
/*
* worker_main()
* Main entry point for the worker threads. Worker threads block in
* win*_get_connection() awaiting a connection to service.
*/
static DWORD __stdcall worker_main(void *thread_num_val)
{
apr_thread_t *thd = NULL;
apr_os_thread_t osthd;
Sorry, I make a mistack.
apr_os_thread_t t = apr_os_thread_current();
apr_os_thread_t *t1;
apr_os_thread_get(&t1, r->connection->current_thread);
printf("EQUALS %d\n",apr_os_thread_equal(t, *t1));
Tow different type data to comp, so it's will fail.