File tree Expand file tree Collapse file tree 3 files changed +3
-16
lines changed
Expand file tree Collapse file tree 3 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 3131namespace WebCore {
3232namespace Process {
3333
34- static std::optional<ProcessIdentifier> globalIdentifier;
35-
36- void setIdentifier (ProcessIdentifier processIdentifier)
37- {
38- ASSERT (isUIThread ());
39- globalIdentifier = processIdentifier;
40- }
34+ // Bun only has 1 process
35+ static ProcessIdentifier globalIdentifier { 1 };
4136
4237ProcessIdentifier identifier ()
4338{
44- static std::once_flag onceFlag;
45- std::call_once (onceFlag, [] {
46- if (!globalIdentifier)
47- globalIdentifier = ProcessIdentifier::generate ();
48- });
49-
50- return *globalIdentifier;
39+ return globalIdentifier;
5140}
5241
5342} // namespace ProcessIdent
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ using ProcessIdentifier = ObjectIdentifier<ProcessIdentifierType>;
3434
3535namespace Process {
3636
37- WEBCORE_EXPORT void setIdentifier (ProcessIdentifier);
3837WEBCORE_EXPORT ProcessIdentifier identifier ();
3938
4039} // namespace Process
Original file line number Diff line number Diff line change 143143#include " Performance.h"
144144#include " ProcessBindingConstants.h"
145145#include " ProcessBindingTTYWrap.h"
146- #include " ProcessIdentifier.h"
147146#include " ReadableStream.h"
148147#include " SerializedScriptValue.h"
149148#include " StructuredClone.h"
You can’t perform that action at this time.
0 commit comments