|
HawkTracer
0.10.0
|
Go to the source code of this file.
Functions | |
| HT_DECLS_BEGIN HT_API void | ht_init (int argc, char **argv) |
| Initializes HawkTracer library. More... | |
| HT_API void | ht_deinit (void) |
| Uninitializes HawkTracer library. More... | |
| HT_API HT_Boolean | ht_is_initialized (void) |
| Checks if the HawkTracer library is initialized. More... | |
| HT_API void ht_deinit | ( | void | ) |
Uninitializes HawkTracer library.
This function must be called as a last function of the library in the program. The only exception is ht_timeline_deinit() which might be called after ht_deinit(), however, it's highly not recommended and should be avoided when possible.
This function is not thread-safe, i.e. it must not be called from two different threads at the same time.
| HT_DECLS_BEGIN HT_API void ht_init | ( | int | argc, |
| char ** | argv | ||
| ) |
Initializes HawkTracer library.
This function must be called before any other function from this library. The only exception is ht_allocator_set(), which must be called before ht_init().
The function can be called multiple times, but only the first call initializes the library. All the other calls don't have any effect.
This function is not thread-safe, i.e. it must not be called from two different threads at the same time.
| argc | a number of arguments of the argv array. |
| argv | an array of strings - arguments for HawkTracer library. |
| HT_API HT_Boolean ht_is_initialized | ( | void | ) |
Checks if the HawkTracer library is initialized.