HawkTracer  0.10.0
init.h File Reference

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...
 

Function Documentation

◆ ht_deinit()

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_init()

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.

Parameters
argca number of arguments of the argv array.
argvan array of strings - arguments for HawkTracer library.

◆ ht_is_initialized()

HT_API HT_Boolean ht_is_initialized ( void  )

Checks if the HawkTracer library is initialized.

Returns
HT_TRUE, if the library is initialized; otherwise, HT_FALSE.