Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
FibersError.h
1// Copyright (c) Stefano Cristiano
2// SPDX-License-Identifier: MIT
3#pragma once
4
5#include "../Common/Result.h"
6
7namespace SC
8{
11
14enum class FibersError : uint32_t
15{
16 InvalidState = 1,
17 WrongOwner,
18 WrongScheduler,
19 WrongExecutionContext,
20 InvalidConfiguration,
21 CapacityExceeded,
22 StorageTooSmall,
23 GroupStorageTooSmall,
24 SlotUnavailable,
25 QueueUnavailable,
26 InvalidProcedure,
27 OperationUnsupported,
28 Cancelled,
29 NoProgress,
30 CounterUnderflow,
31 SynchronizationViolation,
32 GroupNotReset,
33 UnexpectedWorkerState,
34 AllocationFailed,
35 MemoryReservationFailed,
36 MemoryCommitFailed,
37 MemoryDecommitFailed,
38 MemoryReleaseFailed,
39 MemoryProtectionFailed,
40 StackGrowthPreparationFailed,
41 StackGuardPreparationFailed,
42 SignalHandlerInstallFailed,
43 SignalHandlerRestoreFailed,
44 SignalStackInstallFailed,
45 SignalStackRestoreFailed,
46 ThreadStartFailed,
47 ThreadJoinFailed,
48 ThreadPriorityApplyFailed,
49 ThreadAffinityApplyFailed,
50};
51
53static constexpr ResultCategory FibersResultCategory = ResultCategory(12);
54
56} // namespace SC
FibersError
Stable portable failures owned by Fibers.
Definition FibersError.h:15