An industrial-grade C++ implementation of RAFT consensus algorithm based on brpc, widely used inside Baidu to build highly-available distributed systems.
Apache License 2.0
3.99k
stars
886
forks
source link
fix(examples) replace pthread type with pthread_t #391
Fix examples compile issues on macos13+.
on MacOS13+,
pthread_t
defined as :bthread_t
defined as:typedef uint64_t bthread_t;
.bthread_t
andpthread_t
are not shared the same type on MacOS SDK anymore, so we need to declaretids
andpids
with respective types.