Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ SetProxyProcessHandler()

unsafe int Microsoft.Xna.Framework.WindowsManagedCallbackHandler.SetProxyProcessHandler ( IProxyProcessHandler proxyProcessHandler)
inline

Definition at line 183 of file WindowsManagedCallbackHandler.cs.

184 {
185 if (global::_003CModule_003E.SetEvent(_proxyProcessNeedsToChange) == 0)
186 {
187 uint lastError = global::_003CModule_003E.GetLastError();
188 return ((int)lastError > 0) ? ((int)(lastError & 0xFFFF) | -2147024896) : ((int)lastError);
189 }
190 bool lockTaken = false;
191 try
192 {
195 }
196 finally
197 {
198 if (lockTaken)
199 {
201 }
202 }
203 if (global::_003CModule_003E.ResetEvent(_proxyProcessNeedsToChange) == 0)
204 {
205 uint lastError2 = global::_003CModule_003E.GetLastError();
206 return ((int)lastError2 > 0) ? ((int)(lastError2 & 0xFFFF) | -2147024896) : ((int)lastError2);
207 }
208 return 0;
209 }
static void Exit(object obj)
static void Enter(object obj)

References Microsoft.Xna.Framework.WindowsManagedCallbackHandler._proxyProcessHandler, Microsoft.Xna.Framework.WindowsManagedCallbackHandler._proxyProcessHandlerSyncObject, Microsoft.Xna.Framework.WindowsManagedCallbackHandler._proxyProcessNeedsToChange, System.Threading.Monitor.Enter(), and System.Threading.Monitor.Exit().