From 7331352a30da15c92f942d07ed1a1a7db8e61250 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Fri, 29 Apr 2016 13:51:31 -0400 Subject: Update GTMDebugThreadValidation with general queue support. --- DebugUtils/GTMDebugThreadValidation.m | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'DebugUtils/GTMDebugThreadValidation.m') diff --git a/DebugUtils/GTMDebugThreadValidation.m b/DebugUtils/GTMDebugThreadValidation.m index 30ee757..f2af8a0 100644 --- a/DebugUtils/GTMDebugThreadValidation.m +++ b/DebugUtils/GTMDebugThreadValidation.m @@ -1,7 +1,7 @@ // // GTMDebugThreadValidation.m // -// Copyright 2008 Google Inc. +// Copyright 2016 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy @@ -16,22 +16,4 @@ // the License. // -#import "GTMDebugThreadValidation.h" - -#if DEBUG && MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 - -static NSThread *gGTMMainThread = nil; - -static __attribute__((constructor)) void _GTMInitThread(void) { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - gGTMMainThread = [NSThread currentThread]; - [gGTMMainThread retain]; - [pool release]; -} - - -BOOL _GTMIsRunningOnMainThread(void) { - return [[NSThread currentThread] isEqual:gGTMMainThread]; -} - -#endif // DEBUG && MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 +// No implementation source currently needed. -- cgit v1.2.3