A bug, apr_os_thread_current() not equal r->connection->current_thread

2011-11-15 Thread zhiguo zhao
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

Re: A bug, apr_os_thread_current() not equal r->connection->current_thread

2011-11-15 Thread William A. Rowe Jr.
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

Re: A bug, apr_os_thread_current() not equal r->connection->current_thread

2011-11-15 Thread zhiguo zhao
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;

Re: A bug, apr_os_thread_current() not equal r->connection->current_thread

2011-11-15 Thread zhiguo zhao
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.