public static bool Initialize(string installPath) { while (initializing) { Thread.Sleep(1); } if (status == AtlasInitStatus.NOT_INITIALIZED) { if (InitializeInt(installPath)) { status = AtlasInitStatus.SUCCESS; return(true); } else { status = AtlasInitStatus.FAILURE; Deinitialize(); return(false); } } else { return(status == AtlasInitStatus.SUCCESS); } }
public static bool Initialize(string installPath) { while (initializing) Thread.Sleep(1); if (status == AtlasInitStatus.NOT_INITIALIZED) { if (InitializeInt(installPath)) { status = AtlasInitStatus.SUCCESS; return true; } else { status = AtlasInitStatus.FAILURE; Deinitialize(); return false; } } else { return status == AtlasInitStatus.SUCCESS; } }