mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
remove explicit thread stack size.
The real win is having a global http_client, so the thread only needs a pointer.
This commit is contained in:
@@ -60,7 +60,7 @@ pub const LightPanda = struct {
|
|||||||
self.mutex.lock();
|
self.mutex.lock();
|
||||||
defer self.mutex.unlock();
|
defer self.mutex.unlock();
|
||||||
if (self.thread == null) {
|
if (self.thread == null) {
|
||||||
self.thread = try std.Thread.spawn(.{ .stack_size = 1024 * 1024 * 4 }, run, .{self});
|
self.thread = try std.Thread.spawn(.{}, run, .{self});
|
||||||
}
|
}
|
||||||
|
|
||||||
const node = try self.node_pool.create();
|
const node = try self.node_pool.create();
|
||||||
|
|||||||
Reference in New Issue
Block a user