Skip to content

Commit

Permalink
threading tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Apr 29, 2024
1 parent f80b224 commit 7f0f4ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ static FILE *log_fh = nullptr;
static int lf_uid = -1;
static int lf_gid = -1;
static bool l_timestamp = true;
static int log_buffer_size = 128;
static char *log_buffer = reinterpret_cast<char *>(malloc(log_buffer_size));
static thread_local int log_buffer_size = 128;
static thread_local char *log_buffer = reinterpret_cast<char *>(malloc(log_buffer_size));

#if defined(ESP32)
int gettid()
Expand Down

0 comments on commit 7f0f4ba

Please sign in to comment.