apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From INOUE Seiichiro <in...@ariel-networks.com>
Subject apr_os_thread_get() weirdness on Win32
Date Thu, 05 Sep 2002 19:54:33 GMT
Hi,

It looks apr_os_thread_get() is wrong on Win32.
The types don't match.

Excerpted from "include/apr_portable.h"
typedef HANDLE                apr_os_thread_t;

Excerpted from "include/arch/win32/threadproc.h"
struct apr_thread_t {
    apr_pool_t *pool;
    HANDLE td;
    ...

Excerpted from "threadproc/win32/thread.c"
APR_DECLARE(apr_status_t) apr_os_thread_get(apr_os_thread_t **thethd,
                                            apr_thread_t *thd)
{
    if (thd == NULL) {
        return APR_ENOTHREAD;
    }
    *thethd = thd->td;
    return APR_SUCCESS;
}


Thanks.
- INOUE Seiichiro <inoue@ariel-networks.com>

Mime
View raw message