Skip to content
Snippets Groups Projects
  1. May 25, 2018
  2. May 24, 2018
  3. May 22, 2018
  4. May 21, 2018
  5. May 17, 2018
  6. May 10, 2018
  7. May 07, 2018
  8. May 06, 2018
  9. May 01, 2018
  10. Apr 23, 2018
  11. Apr 21, 2018
  12. Apr 20, 2018
  13. Apr 17, 2018
  14. Apr 16, 2018
  15. Apr 15, 2018
  16. Apr 12, 2018
  17. Apr 11, 2018
  18. Apr 10, 2018
    • bors's avatar
      Auto merge of #960 - glandium:mutex-init, r=alexcrichton · 846ecb00
      bors authored
      Add PTHREAD_*_MUTEX_INITIALIZER_NP for glibc
      
      `pthread_mutex_t` varies across architectures, in several ways:
      - endianness alters the ordering of bytes, since the contents of the
        struct are larger than 8-bit.
      - its length varies.
      - the location of the mutex kind (`PTHREAD_MUTEX_RECURSIVE`,
        `PTHREAD_MUTEX_ERRORCHECK` or `PTHREAD_MUTEX_ADAPTIVE_NP`) varies
        between 32-bit and 64-bit: On 32-bit architectures, it is preceded by
        three int/unsigned int, while on 64-bit architectures, it is preceded
        by four of them.
      
      These initializers are only available from <pthread.h> when _GNU_SOURCE
      is defined.
      846ecb00
Loading