silc_stack_set_global

SYNOPSIS

    void silc_stack_set_global(SilcStack stack);

DESCRIPTION

Sets global SilcStack `stack' that can be retrieved at any time by using silc_stack_get_global. The global stack is global only to the current thread. Each thread can have their own global stack. If each thread must have own stack this must be called in each thread. If the global stack has been set already, new call will replace the old one.

This routine is provided only as a convenience function to store program's or thread's stack in one global place. It is not mandatory to call this function in order to use SilcStack.