2010-02-17 3 views
2

바이오닉 libc는 어떤 유형의 뮤텍스를 지원합니까?바이오닉 (안드로이드 libc) 뮤텍스 변종

The implementation is based on futexes and strives to provide *very* short 
code paths for common operations. Notable features are the following: 

    - pthread_mutex_t, pthread_cond_t are only 4 bytes each. 

    - Normal, recursive and error-check mutexes are supported, and the code 
    path is heavily optimized for the normal case, which is used most of 
    the time. 

    - Process-shared mutexes and condition variables are not supported. 
    Their implementation requires far more complexity and was absolutely 
    not needed for Android (which uses other inter-process synchronization 
    capabilities). 

    Note that they could be added in the future without breaking the ABI 
    by specifying more sophisticated code paths (which may make the common 
    paths slightly slower though). 

    - There is currently no support for read/write locks, priority-ceiling in 
    mutexes and other more advanced features. Again, the main idea being 
    that this was not needed for Android at all but could be added in the 
    future. 

답변

4

을 errorchecking 시간 초과 5 년 동안 바뀌 었습니까?

+0

그래서 '적응 형'과 '시간 지정'은 지원되지 않습니까? – osgx

+0

이 (가) 보이지 않습니다. –

+0

바이오닉 서포트의 뮤텍스 중 타임 아웃이 있습니까? – osgx

0

그래서 아무것도 있습니다

  • 재귀
  • 적응
  • 이 문서 (생체 공학/libc의/문서/OVERVIEW.TXT)에서