Files
termux-packages/packages/pikiwidb/src-net-src-thread_pool.cc.patch
termux-pacman-bot 527e3f4d22 bump(main/pikiwidb): 3.5.6
- Project external branding renamed to "pikiwidb"; internal branding, configuration file name, and executable name still "pika"

- New dependencies `fmt`, `gflags`, `zlib`

- Switched to CMake

- Rewrite all patches; many dependencies had to be unvendored and build for Android forced

- Enable 32-bit ARM target

- Tested and appears to be working rootless on a standard device as long as "`eth1`" is changed to "`wlan0`" in the configuration file and then the modified configuration file is specified using `pika -c /path/to/modified/pika.conf`.
2026-01-02 23:37:20 +00:00

15 lines
543 B
Diff

Prevents
error: reinterpret_cast from 'pthread_t' (aka 'long') to 'unsigned long' is not allowed
--- a/src/net/src/thread_pool.cc
+++ b/src/net/src/thread_pool.cc
@@ -25,7 +25,7 @@ int ThreadPool::Worker::start() {
return -1;
} else {
start_.store(true);
- std::string thread_id_str = std::to_string(reinterpret_cast<unsigned long>(thread_id_));
+ std::string thread_id_str = std::to_string(thread_id_);
SetThreadName(thread_id_, thread_pool_->thread_pool_name() + "_Worker_" + thread_id_str);
}
}