0002-overrule-queue-size.patch 727 B

1234567891011121314151617181920212223242526272829303132
  1. From c1a94a6481af2de66ebc8cde18d99334de3e4c84 Mon Sep 17 00:00:00 2001
  2. From: bfgeshka <bfgeshka@horsefucker.org>
  3. Date: Sun, 13 Jun 2021 22:40:11 +0900
  4. Subject: [PATCH] overrule queue size
  5. ---
  6. src/threadpool.h | 2 +-
  7. 1 file changed, 1 insertions(+), 1 deletions(-)
  8. diff --git a/src/threadpool.h b/src/threadpool.h
  9. index 2f0ddbc..60780a8 100644
  10. --- a/src/threadpool.h
  11. +++ b/src/threadpool.h
  12. @@ -37,13 +37,13 @@ extern "C" {
  13. * @file threadpool.h
  14. * @brief Threadpool Header File
  15. */
  16. /**
  17. * Increase this constants at your own risk
  18. * Large values might slow down your system
  19. */
  20. #define MAX_THREADS 64
  21. -#define MAX_QUEUE 65536
  22. +#define MAX_QUEUE 2000000
  23. typedef struct threadpool_t threadpool_t;
  24. --
  25. 2.31.0