it's not thread safe
Open
- Dominant language
- C++
- Stars
- 266
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
to reproduce
```
for(int i=1;i<100;i++)
std::thread(test1).detach();
```
```
void test1()
{
Timer t = Timer();
t.setInterval([&](){
},
1000);
t.stop();
}
```
results
Exception has occurred.
Segmentation fault
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported segmentation fault with the provided C++ snippet, then inspect the Timer implementation and its handling of concurrent construction, setInterval, and stop. Done means the repeated multithreaded case no longer segfaults.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100