1. 21 Jun, 2023 2 commits
    • absl: add a Mutex::Await/LockWhen test · 166d71d1
      Check various corner cases for Await/LockWhen return value
      with always true/always false conditions.
      I don't see this explicitly tested anywhere else.
      
      PiperOrigin-RevId: 542141533
      Change-Id: Ia116c6dc199de606ad446c205951169ec5e2abe1
      Abseil Team committed
    • absl: fix lint errors in Mutex · 55e8345c
      Currently linter warns on all changes:
      
      missing #include <cstdlib> for 'std::atexit'
      
      and
      
      single-argument constructors must be marked explicit to avoid unintentional implicit conversions
      
      Fix that.
      
      PiperOrigin-RevId: 542135136
      Change-Id: Ic86649de6baef7f2de71f45875bb66bd730bf6e1
      Abseil Team committed
  2. 20 Jun, 2023 5 commits
  3. 17 Jun, 2023 1 commit
  4. 16 Jun, 2023 3 commits
    • Use std::is_final instead of a non-portable implementation · 049aa40e
      PiperOrigin-RevId: 540928490
      Change-Id: Idf022b28ce101a948be4efd5336888a66f5eacf9
      Derek Mauro committed
    • absl: fix Mutex writer starvation related to uninit priority · cef7c4e8
      Currently when we queue the first thread, we don't init its priority.
      Subsequent queued threads init priority, but they compare it against
      the first thread priority, which is uninit. Thus the order can be wrong.
      It can lead to complete false starvation in some corner cases.
      
      On Linux the default priority is 0, which matches the uninit value,
      thus the problem is harder to spot on Linux (only possible if explicit
      thread priorities are used). But on Darwin the default priority is 31,
      thus the first thread falsely looks like lower priority than subsequently
      queued threads. The added test exposes the problem on Darwin.
      
      Always initialize the priority before queuing threads.
      
      PiperOrigin-RevId: 540814133
      Change-Id: I513ce1493a67afe77d3e92fb49000b046b42a9f2
      Abseil Team committed
    • absl: move comment in mutex.cc to where it belongs · b6a417bb
      Move the comment that relates to kMuDesig close to kMuDesig definition.
      Currently it's placed in between unrelated flags.
      
      NFC
      
      PiperOrigin-RevId: 540792401
      Change-Id: I5f6a928cd9e01664812b2a7c3d9eb087c0723d7f
      Abseil Team committed
  5. 15 Jun, 2023 3 commits
  6. 14 Jun, 2023 1 commit
  7. 13 Jun, 2023 2 commits
  8. 12 Jun, 2023 7 commits
  9. 09 Jun, 2023 8 commits
  10. 08 Jun, 2023 3 commits
  11. 07 Jun, 2023 4 commits
  12. 06 Jun, 2023 1 commit