Go to the source code of this file.
◆ ThreadInitCallback
◆ SCThreadRegisterInitCallback()
Register a thread init callback.
Register a user provided function to be called every time a thread is initialized for use.
- Parameters
-
fn | Pointer to function to be called |
user | Additional user data to be passed to callback |
- Returns
- true if callback was registered, otherwise false if the callback could not be registered due to memory allocation error.
Definition at line 28 of file thread-callbacks.c.
References ThreadInitCallback_::Callback, SCCalloc, and ThreadInitCallback_::user.
◆ SCThreadRunInitCallbacks()