Fix the android clang bot for compiling with thread annotations.

TBR=niklas.enbom@webrtc.org
R=niklas.enbom@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/6279005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5330 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/audio_device/android/audio_record_jni.h b/webrtc/modules/audio_device/android/audio_record_jni.h
index f96f55a..1c525ff 100644
--- a/webrtc/modules/audio_device/android/audio_record_jni.h
+++ b/webrtc/modules/audio_device/android/audio_record_jni.h
@@ -110,13 +110,12 @@
   int32_t SetRecordingSampleRate(const uint32_t samplesPerSec);
 
  private:
-  // Lock
-  void Lock() {
+  void Lock() EXCLUSIVE_LOCK_FUNCTION(_critSect) {
     _critSect.Enter();
-  };
-  void UnLock() {
+  }
+  void UnLock() UNLOCK_FUNCTION(_critSect) {
     _critSect.Leave();
-  };
+  }
 
   int32_t InitJavaResources();
   int32_t InitSampleRate();
diff --git a/webrtc/modules/audio_device/android/audio_track_jni.h b/webrtc/modules/audio_device/android/audio_track_jni.h
index 180bcec..1c17210 100644
--- a/webrtc/modules/audio_device/android/audio_track_jni.h
+++ b/webrtc/modules/audio_device/android/audio_track_jni.h
@@ -111,13 +111,12 @@
   virtual int PlayoutDelayMs() { return 0; }
 
  private:
-  // Lock
-  void Lock() {
+  void Lock() EXCLUSIVE_LOCK_FUNCTION(_critSect) {
     _critSect.Enter();
-  };
-  void UnLock() {
+  }
+  void UnLock() UNLOCK_FUNCTION(_critSect) {
     _critSect.Leave();
-  };
+  }
 
   int32_t InitJavaResources();
   int32_t InitSampleRate();