diff options
author | 2023-09-05 17:41:39 -0700 | |
---|---|---|
committer | 2023-09-05 17:41:39 -0700 | |
commit | acfd028e8f859a0e8139b7adab5d319e326c2373 (patch) | |
tree | f6bf98b2e40fcbcc036348bf7e0556e9edfa3b4e /src/bun.js/bindings/ZigGeneratedClasses+lazyStructureHeader.h | |
parent | 6f8a3934923198cbadae64cda24201e2de2655c1 (diff) | |
download | bun-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.h | 6 |
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); } |