MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / Update

Method Update

source/WinGroup.cpp:356–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354
355
356inline ResultType WinGroup::Update(bool aIsModeActivate)
357{
358 mIsModeActivate = aIsModeActivate;
359 if (sGroupLastUsed != this)
360 {
361 sGroupLastUsed = this;
362 sAlreadyVisitedCount = 0; // Since it's a new group, reset the array to start fresh.
363 }
364 if (!sAlreadyVisited) // Allocate the array on first use.
365 // Getting it from SimpleHeap reduces overhead for the avg. case (i.e. the first
366 // block of SimpleHeap is usually never fully used, and this array won't even
367 // be allocated for short scripts that don't even use window groups.
368 sAlreadyVisited = SimpleHeap::Alloc<HWND>(MAX_ALREADY_VISITED);
369 return OK;
370}
371
372
373

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected