aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-09-05 17:41:39 -0700
committerGravatar GitHub <noreply@github.com> 2023-09-05 17:41:39 -0700
commitacfd028e8f859a0e8139b7adab5d319e326c2373 (patch)
treef6bf98b2e40fcbcc036348bf7e0556e9edfa3b4e /src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h
parent6f8a3934923198cbadae64cda24201e2de2655c1 (diff)
downloadbun-acfd028e8f859a0e8139b7adab5d319e326c2373.tar.gz
bun-acfd028e8f859a0e8139b7adab5d319e326c2373.tar.zst
bun-acfd028e8f859a0e8139b7adab5d319e326c2373.zip
feat(runtime): Implement `fs.watchFile` (#4467)
* really lame prototype * uses threads but badly * it works i guess * unwatchFile but lame * it works * test * a * aomitcs * fix unwatching race condition * use hasPendingActivity and GC stuff better * test * revert this
Diffstat (limited to 'src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h')
-rw-r--r--src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h b/src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h
index 0596372b4..2c075a508 100644
--- a/src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h
+++ b/src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h
@@ -244,6 +244,12 @@ JSC::Structure* JSServerWebSocketStructure() { return m_JSServerWebSocket.getIni
JSC::LazyClassStructure m_JSServerWebSocket;
bool hasJSServerWebSocketSetterValue { false };
mutable JSC::WriteBarrier<JSC::Unknown> m_JSServerWebSocketSetterValue;
+JSC::Structure* JSStatWatcherStructure() { return m_JSStatWatcher.getInitializedOnMainThread(this); }
+ JSC::JSObject* JSStatWatcherConstructor() { return m_JSStatWatcher.constructorInitializedOnMainThread(this); }
+ JSC::JSValue JSStatWatcherPrototype() { return m_JSStatWatcher.prototypeInitializedOnMainThread(this); }
+ JSC::LazyClassStructure m_JSStatWatcher;
+ bool hasJSStatWatcherSetterValue { false };
+ mutable JSC::WriteBarrier<JSC::Unknown> m_JSStatWatcherSetterValue;
JSC::Structure* JSStatsStructure() { return m_JSStats.getInitializedOnMainThread(this); }
JSC::JSObject* JSStatsConstructor() { return m_JSStats.constructorInitializedOnMainThread(this); }
JSC::JSValue JSStatsPrototype() { return m_JSStats.prototypeInitializedOnMainThread(this); }