10 Commits

Author SHA1 Message Date
Bright Chen c9778ca1a3 Refactor NULL with nullptr in test (#3464) 2026-08-19 13:26:18 +08:00
Bright Chen f85f1c5704 Reimplement writer-priority RWLock (#3286)
The previous go-like RWLock bumps the reader count first and rolls it
back only on the full success path. The state is not reversible on a
partial failure, so a read timeout while a writer holds the lock leaves a
dangling reader credit and permanently blocks future writers (issue #3051).
For the same reason the old implementation could not offer correct try_/timed_ APIs
at all.

Co-authored-by: hairet
2026-05-19 16:45:22 +08:00
Bright Chen c7add74fab Support ProtoJson formatted http body (#2921) 2025-03-30 15:02:26 +08:00
Bright Chen 7a7d1c83e5 Support AddressSanitizer (#2890)
* Support AddressSanitizer

* Add gperftools helper header
2025-03-26 20:07:45 +08:00
Bright Chen f17048e180 Support semaphore and rwlock for bthread (#2752)
* Support bthread semaphore

* Support bthread rwlock

* Support contention profiler for semaphore and rwlock
2024-09-26 10:49:23 +08:00
Weibing Wang 078051f9bf Update license header to Apache 2019-06-20 14:22:57 +08:00
gejun 80f9f2f160 Rename base to butil to avoid potential naming conflicts 2017-09-08 17:17:35 +08:00
gejun 023371e643 Change copyright to Baidu, Inc 2017-09-05 19:44:12 +08:00
gejun d5b908014b Patch svn r35208 2017-09-03 14:37:17 +08:00
gejun 7998155962 first working CI
Change-Id: I68c0cafba040debefd660c5213f21e6fc702a4a6
2017-07-25 23:02:28 +08:00