rocprofiler-sdk/internal_threading.h File Reference#
Rocprofiler SDK Developer API 0.5.0
ROCm Profiling API and tools
|
internal_threading.h File Reference
Include dependency graph for internal_threading.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | rocprofiler_callback_thread_t |
opaque handle to an internal thread identifier which delivers callbacks for buffers More... | |
Typedefs | |
typedef void(* | rocprofiler_internal_thread_library_cb_t) (rocprofiler_runtime_library_t, void *) |
Callback type before and after internal thread creation. | |
Functions | |
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 library which as invoked on the thread which is creating the internal thread(s). | |
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 buffer, will guarantee those buffered results always get delivered on the same thread. This is useful to prevent/control thread-safety issues and/or enable multithreaded processing of buffers with non-overlapping data. | |
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_thread, one or more buffers can be assigned to deliever their results on a unique, dedicated thread. | |
Generated by 1.9.8