auto ctx1 = Context();
auto ctx2 = ctx1;
assert (ctx1.initialized);
assert (ctx2.initialized);
assert (ctx1.handle == ctx2.handle);
ctx2.terminate();
assert (!ctx1.initialized);
assert (!ctx2.initialized);
assert (ctx1.handle == null);
assert (ctx2.handle == null);
Forcefully terminates the context.
By using this function, one effectively circumvents the reference-counting mechanism for managing the context. After it returns, all other Context objects that used to refer to the same context will be in a state which is functionally equivalent to the default-initialized state (i.e., Context.initialized is false and Context.handle is null).