Skip to content

Commit

Permalink
Merge branch 'master' into ReleaseNotes
Browse files Browse the repository at this point in the history
  • Loading branch information
MFransen69 authored Jul 23, 2024
2 parents 624fe7e + cd7f1d9 commit 9e61241
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Source/core/ResourceMonitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,7 @@ namespace Core {
class ResourceMonitorType {
private:
using Parent = ResourceMonitorType<RESOURCE, WATCHDOG, STACK_SIZE, RESOURCE_SLOTS>;

// Using the std::vector here caused an issue on Windows as the iterator in the Worker was corrupted after
// a new connection was added during the worker run (accept on listen) Although this should be added to
// the end of the vector/list, it did cause an issue on Windows and probbaly *not* on linux. Requires further
// investigation
#ifdef __WINDOWS__
using Resources = std::list<RESOURCE*>;
#else
using Resources = std::vector<RESOURCE*>;
#endif

class MonitorWorker : public Core::Thread {
public:
Expand Down

0 comments on commit 9e61241

Please sign in to comment.