Skip to content
Browse files

Rely on pthread to implement reader-writer lock for Android

Now that we support API Level 14 (Ice Cream Sandwich) and later only, we can safely assume that pthread is available.

This is just a performance optimization.  No user-visible change is intended.


git-svn-id: a6090854-d499-a067-5803-1114d4e51264
  • Loading branch information...
yukawa committed Feb 7, 2015
1 parent 6182d5e commit 7d03922bee88c316a18cfb962ef8d40869cb1653
Showing with 1 addition and 7 deletions.
  1. +0 −6 src/base/
  2. +1 −1 src/mozc_version_template.txt
@@ -43,12 +43,6 @@

#if defined(OS_WIN)
// We do not use pthread on Windows
#elif defined(OS_ANDROID)
// pthread rwlock is supported since API Level 9.
// Currently minimum API Level is 7 so we cannot use it.
// Note that we cannot use __ANDROID_API__ macro in above condition
// because it is equal to target API Level, which is greater than
// min sdk level. Causes runtime crash.
#elif defined(__native_client__)
// TODO(team): Consider to use glibc rwlock.
@@ -1,6 +1,6 @@
# NACL_DICTIONARY_VERSION is the target version of the system dictionary to be
# downloaded by NaCl Mozc.

0 comments on commit 7d03922

Please sign in to comment.
You can’t perform that action at this time.