rocprofiler-sdk/internal_threading.h Source File#
Rocprofiler SDK Developer API 0.5.0
ROCm Profiling API and tools
|
internal_threading.h
Go to the documentation of this file.
54 * invoked on the thread that is about to create the new thread (not on the newly created thread).
62 * the underlying system call to create a new thread but it does not guarantee that the new thread
63 * has been started. Please note, that once these callbacks are registered, they cannot be removed
69 * @param [in] libs Bitwise-or of libraries, e.g. `ROCPROFILER_LIBRARY | ROCPROFILER_MARKER_LIBRARY`
74 * @retval ::ROCPROFILER_STATUS_SUCCESS There are currently no conditions which result in any other
93 * @brief Create a handle to a unique thread (created by rocprofiler) which, when associated with a
94 * particular buffer, will guarantee those buffered results always get delivered on the same thread.
95 * This is useful to prevent/control thread-safety issues and/or enable multithreaded processing of
101 * @retval ::ROCPROFILER_STATUS_ERROR_CONFIGURATION_LOCKED Thread creation is no longer available
111 * rocprofiler_create_callback_thread, one or more buffers can be assigned to deliever their results
115 * @param [in] cb_thread_id Callback thread identifier via @ref rocprofiler_create_callback_thread
117 * @retval ::ROCPROFILER_STATUS_SUCCESS Successful assignment of the delivery thread for the given
119 * @retval ::ROCPROFILER_STATUS_ERROR_CONFIGURATION_LOCKED Thread assignment is no longer available
121 * @retval ::ROCPROFILER_STATUS_ERROR_THREAD_NOT_FOUND Thread identifier did not match any of the
123 * @retval ::ROCPROFILER_STATUS_ERROR_BUFFER_NOT_FOUND Buffer identifier did not match any of the
rocprofiler_runtime_library_t
Enumeration for specifying runtime libraries supported by rocprofiler. This enumeration is used for t...
Definition fwd.h:348
void(* rocprofiler_internal_thread_library_cb_t)(rocprofiler_runtime_library_t, void *)
Callback type before and after internal thread creation.
Definition internal_threading.h:46
rocprofiler_status_t rocprofiler_assign_callback_thread(rocprofiler_buffer_id_t buffer_id, rocprofiler_callback_thread_t cb_thread_id)
By default, all buffered results are delivered on the same thread. Using rocprofiler_create_callback_...
rocprofiler_status_t rocprofiler_at_internal_thread_create(rocprofiler_internal_thread_library_cb_t precreate, rocprofiler_internal_thread_library_cb_t postcreate, int libs, void *data)
Invoke this function to receive callbacks before and after the creation of an internal thread by a li...
rocprofiler_status_t rocprofiler_create_callback_thread(rocprofiler_callback_thread_t *cb_thread_id)
Create a handle to a unique thread (created by rocprofiler) which, when associated with a particular ...
opaque handle to an internal thread identifier which delivers callbacks for buffers
Definition internal_threading.h:88
Generated by 1.9.8