Skip to content

Commit

Permalink
cherry-pick fix for timer stack overflow (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
beef9999 authored May 23, 2024
1 parent e5a7cac commit 40507a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thread/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace photon
// it has a `stack_size`, and the `on_timer` is invoked within the thread's context.
// The timer object is deleted automatically after it is finished.
Timer(uint64_t default_timeout, Entry on_timer, bool repeating = true,
uint64_t stack_size = 1024 * 64)
uint64_t stack_size = DEFAULT_STACK_SIZE)
{
_on_timer = on_timer;
_default_timeout = default_timeout;
Expand Down

0 comments on commit 40507a6

Please sign in to comment.