/*
* Copyright (C) 1998-2001, 2004, 2005, 2007, 2009, 2013, 2016, 2017 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: thread.h,v 1.25 2009/09/29 04:37:08 marka Exp $ */
#ifndef ISC_THREAD_H
#include <windows.h>
/*
* Inlines to help with wait return checking
*/
/* check handle for NULL and INVALID_HANDLE */
}
/* validate wait return codes... */
return ((dwWaitResult >= WAIT_OBJECT_0) &&
}
return ((dwWaitResult >= WAIT_ABANDONED_0) &&
}
return (dwWaitResult == WAIT_TIMEOUT);
}
return (dwWaitResult == WAIT_FAILED);
}
/* compute object indices for waits... */
return (dwWaitResult - WAIT_OBJECT_0);
}
return (dwWaitResult - WAIT_ABANDONED_0);
}
typedef void * isc_threadarg_t;
void
isc_thread_setconcurrency(unsigned int level);
void
isc_thread_setname(isc_thread_t, const char *);
int
int
void *
int
#endif /* ISC_THREAD_H */