Rocky_Mountain_Vending/.pnpm-store/v10/files/0c/c88dc700e27c230b8dcf9320ce58096d1d28279cb83c54a4a555265e9727732dcb98f7ea94ecba9651d695a6212c2a55cd2ddb7024bf6b650e9c23c9123e64
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

36 lines
No EOL
1.2 KiB
Text

// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as Helpers from '../helpers/helpers.js';
import * as Types from '../types/types.js';
import { data as metaHandlerData } from './MetaHandler.js';
// Each thread contains events. Events indicate the thread and process IDs, which are
// used to store the event in the correct process thread entry below.
const eventsInProcessThread = new Map();
let mainGPUThreadTasks = [];
export function reset() {
eventsInProcessThread.clear();
mainGPUThreadTasks = [];
}
export function handleEvent(event) {
if (!Types.Events.isGPUTask(event)) {
return;
}
Helpers.Trace.addEventToProcessThread(event, eventsInProcessThread);
}
export async function finalize() {
const { gpuProcessId, gpuThreadId } = metaHandlerData();
const gpuThreadsForProcess = eventsInProcessThread.get(gpuProcessId);
if (gpuThreadsForProcess && gpuThreadId) {
mainGPUThreadTasks = gpuThreadsForProcess.get(gpuThreadId) || [];
}
}
export function data() {
return {
mainGPUThreadTasks,
};
}
export function deps() {
return ['Meta'];
}
//# sourceMappingURL=GPUHandler.js.map