mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-05 12:17:53 -04:00
Rename the server thread to make it easier to distinguish in a profiler or debugger.
I would also rename the main thread, but that doesn't seem to be possible.
This commit is contained in:
parent
3db8c22b5d
commit
ab4beca0f4
@ -50,6 +50,9 @@ pub fn openWorld(name: []const u8) void {
|
|||||||
std.log.err("Encountered error while starting server thread: {s}", .{@errorName(err)});
|
std.log.err("Encountered error while starting server thread: {s}", .{@errorName(err)});
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
main.server.thread.?.setName("Server") catch |err| {
|
||||||
|
std.log.err("Failed to rename Server thread: {s}", .{@errorName(err)});
|
||||||
|
};
|
||||||
|
|
||||||
while(!main.server.running.load(.acquire)) {
|
while(!main.server.running.load(.acquire)) {
|
||||||
std.time.sleep(1_000_000);
|
std.time.sleep(1_000_000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user