Logo Search packages:      
Sourcecode: pcsc-lite version File versions  Download package

int SYS_ThreadCreate ( HANDLE *  thread,
int  attributes,
void *  start_routine,
void *  arg 
)

Returns: nonzero for success, 0 for failure.

Definition at line 99 of file thread_win32.c.

Referenced by CreateContextThread().

{

    *thread = CreateThread(
                NULL,       /* thread is not inheritable by child processes */
                0,          /* default stack size */
                start_routine,
                arg,
                0,          /* no flags */
                NULL        /* don't receive thread ID */
              );

    if( *thread == NULL ) {
        return 0;
    } else {
        return 1;
    }
}


Generated by  Doxygen 1.6.0   Back to index