| ... | ... | @@ -1671,20 +1671,23 @@ pub fn init( |
| 1671 | 1671 | /// When initialized this way: |
| 1672 | 1672 | /// * cancel requests have no effect. |
| 1673 | 1673 | /// * `deinit` is safe, but unnecessary to call. |
| 1674 | | pub const init_single_threaded: Threaded = .{ |
| 1675 | | .allocator = .failing, |
| 1676 | | .stack_size = std.Thread.SpawnConfig.default_stack_size, |
| 1677 | | .async_limit = .nothing, |
| 1678 | | .cpu_count_error = null, |
| 1679 | | .concurrent_limit = .nothing, |
| 1680 | | .old_sig_io = undefined, |
| 1681 | | .old_sig_pipe = undefined, |
| 1682 | | .have_signal_handler = false, |
| 1683 | | .argv0 = .empty, |
| 1684 | | .environ_initialized = true, |
| 1685 | | .environ = .empty, |
| 1686 | | .worker_threads = .init(null), |
| 1687 | | .disable_memory_mapping = false, |
| 1674 | pub const init_single_threaded: Threaded = init: { |
| 1675 | const env_block: process.Environ.Block = if (is_windows) .global else .empty; |
| 1676 | break :init .{ |
| 1677 | .allocator = .failing, |
| 1678 | .stack_size = std.Thread.SpawnConfig.default_stack_size, |
| 1679 | .async_limit = .nothing, |
| 1680 | .cpu_count_error = null, |
| 1681 | .concurrent_limit = .nothing, |
| 1682 | .old_sig_io = undefined, |
| 1683 | .old_sig_pipe = undefined, |
| 1684 | .have_signal_handler = false, |
| 1685 | .argv0 = .empty, |
| 1686 | .environ_initialized = env_block.isEmpty(), |
| 1687 | .environ = .{ .process_environ = .{ .block = env_block } }, |
| 1688 | .worker_threads = .init(null), |
| 1689 | .disable_memory_mapping = false, |
| 1690 | }; |
| 1688 | 1691 | }; |
| 1689 | 1692 | |
| 1690 | 1693 | var global_single_threaded_instance: Threaded = .init_single_threaded; |