1*d9f75844SAndroid Build Coastguard Worker /* 2*d9f75844SAndroid Build Coastguard Worker * Copyright 2018 The WebRTC Project Authors. All rights reserved. 3*d9f75844SAndroid Build Coastguard Worker * 4*d9f75844SAndroid Build Coastguard Worker * Use of this source code is governed by a BSD-style license 5*d9f75844SAndroid Build Coastguard Worker * that can be found in the LICENSE file in the root of the source 6*d9f75844SAndroid Build Coastguard Worker * tree. An additional intellectual property rights grant can be found 7*d9f75844SAndroid Build Coastguard Worker * in the file PATENTS. All contributing project authors may 8*d9f75844SAndroid Build Coastguard Worker * be found in the AUTHORS file in the root of the source tree. 9*d9f75844SAndroid Build Coastguard Worker */ 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Worker #ifndef RTC_BASE_SYSTEM_COCOA_THREADING_H_ 12*d9f75844SAndroid Build Coastguard Worker #define RTC_BASE_SYSTEM_COCOA_THREADING_H_ 13*d9f75844SAndroid Build Coastguard Worker 14*d9f75844SAndroid Build Coastguard Worker // If Cocoa is to be used on more than one thread, it must know that the 15*d9f75844SAndroid Build Coastguard Worker // application is multithreaded. Since it's possible to enter Cocoa code 16*d9f75844SAndroid Build Coastguard Worker // from threads created by pthread_thread_create, Cocoa won't necessarily 17*d9f75844SAndroid Build Coastguard Worker // be aware that the application is multithreaded. Spawning an NSThread is 18*d9f75844SAndroid Build Coastguard Worker // enough to get Cocoa to set up for multithreaded operation, so this is done 19*d9f75844SAndroid Build Coastguard Worker // if necessary before pthread_thread_create spawns any threads. 20*d9f75844SAndroid Build Coastguard Worker // 21*d9f75844SAndroid Build Coastguard Worker // http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/CreatingThreads/chapter_4_section_4.html 22*d9f75844SAndroid Build Coastguard Worker void InitCocoaMultiThreading(); 23*d9f75844SAndroid Build Coastguard Worker 24*d9f75844SAndroid Build Coastguard Worker #endif // RTC_BASE_SYSTEM_COCOA_THREADING_H_ 25