1 /* the list of mutexes used by adb */ 2 /* #ifndef __MUTEX_LIST_H 3 * Do not use an include-guard. This file is included once to declare the locks 4 * and once in win32 to actually do the runtime initialization. 5 */ 6 #ifndef ADB_MUTEX 7 #error ADB_MUTEX not defined when including this file 8 #endif 9 ADB_MUTEX(transport_lock) 10 #if ADB_HOST 11 ADB_MUTEX(local_transports_lock) 12 #endif 13 ADB_MUTEX(usb_lock) 14 15 // Sadly logging to /data/adb/adb-... is not thread safe. 16 // After modifying adb.h::D() to count invocations: 17 // DEBUG(jpa):0:Handling main() 18 // DEBUG(jpa):1:[ usb_init - starting thread ] 19 // (Oopsies, no :2:, and matching message is also gone.) 20 // DEBUG(jpa):3:[ usb_thread - opening device ] 21 // DEBUG(jpa):4:jdwp control socket started (10) 22 ADB_MUTEX(D_lock) 23 24 #undef ADB_MUTEX 25