Set the global state object unless it is already set
the new global state to use
true if the state parameter is now being used as the global state, or false if one was already set, in which case the parameter was deleted immediately
See Implementation
Set the global state object unless it is already set