wmJNIc.c
cloneWmContext


WmContext *
cloneWmContext(
      WmContext *cc)
Clones context when you intend to share contexts between threads. This allows you to specify connection attributes once in a master thread and to leverage those settings when constructing new contexts in spawned threads.
Parameters:
WmContext *cc - WmContext needs to be cloned.
Returns:
WmContext * - WmContext cloned in this function.