You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.6 KiB
51 lines
1.6 KiB
/*
|
|
* Copyright 2002-2019 Intel Corporation.
|
|
*
|
|
* This software and the related documents are Intel copyrighted materials, and your
|
|
* use of them is governed by the express license under which they were provided to
|
|
* you ("License"). Unless the License provides otherwise, you may not use, modify,
|
|
* copy, publish, distribute, disclose or transmit this software or the related
|
|
* documents without Intel's prior written permission.
|
|
*
|
|
* This software and the related documents are provided as is, with no express or
|
|
* implied warranties, other than those that are expressly stated in the License.
|
|
*/
|
|
|
|
// <COMPONENT>: os-apis
|
|
// <FILE-TYPE>: component public header
|
|
|
|
#ifndef OS_APIS_THREAD_MANAGEMENT_H_INCLUDED__
|
|
#define OS_APIS_THREAD_MANAGEMENT_H_INCLUDED__
|
|
|
|
#include "os-apis.h"
|
|
|
|
/*!
|
|
* @defgroup OS_APIS_THREAD_MANAGEMENT Threads database
|
|
* @brief Contains API for thread tracking
|
|
*/
|
|
|
|
/*! @ingroup OS_APIS_THREAD_MANAGEMENT
|
|
* Deregister a thread from the threads database and release all the resources
|
|
* used to track this thread (including TLS).
|
|
*
|
|
* @param[in] ntid OS thread ID of the thread to deregister.
|
|
*
|
|
* @par Availability:
|
|
* - @b O/S: Windows, Linux & macOS*
|
|
* - @b CPU: All
|
|
*/
|
|
VOID OS_DeregisterThread(NATIVE_TID ntid);
|
|
|
|
/*! @ingroup OS_APIS_THREAD_MANAGEMENT
|
|
* Deregister the current thread from the threads database and release all the resources
|
|
* used to track this thread (including TLS).
|
|
*
|
|
* @par Availability:
|
|
* - @b O/S: Windows, Linux & macOS*
|
|
* - @b CPU: All
|
|
*/
|
|
VOID OS_DeregisterCurrentThread(void);
|
|
|
|
#endif // OS_APIS_THREAD_MANAGEMENT_H_INCLUDED__
|
|
|