Commit graph

288 commits

Author SHA1 Message Date
sithlord48
77bdde5434 refactor: Elevel => LogLevel enum class, use proper names for items in the class 2025-07-11 03:06:24 -07:00
sithlord48
3472ff6ce5 chore: ArchNetworkBSD, use std::ignore in place of unused int 2025-07-11 03:06:24 -07:00
sithlord48
865365b2fa chore: add noreturn to more methods 2025-07-07 17:53:56 +01:00
sithlord48
0474e10b03 chore: Arch::time explictly convert to double on return 2025-07-03 03:24:16 +00:00
sithlord48
2421a8b725 refactor: Make throwError and throwNameError members of IArchNetwork
make throwError and throwNameError noreturn
          remove unused extra private section in IArchNetwork subclasses
2025-07-03 03:24:16 +00:00
sithlord48
8f6f014bcd refactor: IArchNetwork turn anonymous enum into PollEventMask struct with set of static values 2025-07-03 03:24:16 +00:00
sithlord48
47d44db497 refactor: make EStreamType enum Class StreamType, and conform members to naming conventions 2025-07-03 03:24:16 +00:00
sithlord48
879283f46f refactor: Make IArchNetwork::EAddressFamily enum class IArchNetwork::AddressFamily
confirm AddressFamily items to naming convention
2025-07-03 03:24:16 +00:00
sithlord48
cbbfd495e3 refactor: make ESignal an enum Class IArchMultiThread::ThreadSignal, conform ThreadSignal items to naming conventions 2025-07-03 03:24:16 +00:00
sithlord48
0321b2d36e chore: ArchNetworkBSD:Deps use make_shared now that we dont build on ubuntu 22 anymore 2025-06-20 09:39:26 +01:00
sithlord48
f4a49749c7 chore: remove todo in places where its done or just a note 2025-06-20 09:39:26 +01:00
sithlord48
a80e255bb0 refactor: Add a few missing overrides
make ~XThreadExit() override
 make ~ArchString() overide
 make ~ArchNetworkBDS() overide
2025-06-20 09:39:26 +01:00
sithlord48
c15214aee7 refactor: use std::scoped_lock inplace of std::lock_guard 2025-06-17 10:23:42 +01:00
sithlord48
5fd4d93f7f refactor: replace ARCH->sleep(...) calls with Arch::sleep(...) 2025-06-17 10:23:42 +01:00
sithlord48
84e289bc30 refactor: replace ARCH->time() with Arch::time() 2025-06-17 10:23:42 +01:00
sithlord48
86e109baf5 refactor: use std::mutex in ArchNetworkWinSock 2025-06-14 09:37:48 +01:00
sithlord48
fa1ee0690e refactor: use std::mutex in ArchNetworkBSD 2025-06-14 09:37:48 +01:00
sithlord48
d535593d1d refactor: use std::mutex in ArchMutithreadWindows 2025-06-14 09:37:48 +01:00
Povilas Kanapickas
f89168d00a refactor: use std::mutex in ArchStrings
port b0e415de03
build: link base to arch
2025-06-14 09:37:48 +01:00
Povilas Kanapickas
f4618ee085 refactor: use std::mutex in place of ArchMutex in AtchMultiThreadPosix
port f71c68506e
2025-06-14 09:37:48 +01:00
sithlord48
eac59768ea build: remove HAVE_SYS_SOCKET define should be present on all unix systems 2025-06-14 08:22:55 +01:00
sithlord48
cb05ece6b6 build: remove HAVE_PTHREAD define as its required on unix 2025-06-14 08:22:55 +01:00
sithlord48
044c9b24f3 build: remove HAVE_SOCKLEN_T forced define 2025-06-14 08:22:55 +01:00
sithlord48
a3fe66f213 build: remove HAVE_PTHREAD_SIGNAL define it was forced on 2025-06-14 08:22:55 +01:00
sithlord48
89abcfb238 build: remove never set HAVE_SYS_TYPES 2025-06-14 08:22:55 +01:00
sithlord48
87704fedb1 build: unistd.h is manditory on unix platforms 2025-06-14 08:22:55 +01:00
sithlord48
3eef21c8df chore: remove pointless SYS_TIME if defs one is set true and the other never used just include the libs
chore: remove TIME_WITH_SYS_TIME set to 1 and used once as include guard
2025-06-14 08:22:55 +01:00
sithlord48
a5522729aa refactor: Unify ArchTime classes into one method
Idea from https://github.com/input-leap/input-leap/pull/1464'
2025-06-14 08:22:55 +01:00
sithlord48
36b4bb09bc refactor: Unify ArchSleepClasses into one method
idea from https://github.com/input-leap/input-leap/pull/1462
2025-06-14 08:22:55 +01:00
sithlord48
8170dd4e99 chore use std::getenv Not c style getenv
idea from: https://github.com/debauchee/barrier/pull/847/
2025-06-12 22:27:16 +01:00
sithord48
a31cff0225 chore: Cleanup windows includes 2025-06-02 21:55:36 +01:00
Povilas Kanapickas
5ee3fc41bd chore: arch: Remove XArch exception class
XArch no longer contains any extra functionality in addition to what
std::runtime_error nor it signifies a particular type of error.
based-on: 5b991692af
ported-by: sithlord48
2025-05-28 14:00:18 +01:00
Povilas Kanapickas
cab1eb9cee chore: arch: Derive XThread from std::exception
This is needed because by convention exceptions must derive from at
least std::exception.
ported from: 22aec16dc7
ported-by sithlord48
2025-05-28 14:00:18 +01:00
Povilas Kanapickas
51db919d8f chore: arch, remove XARCH_SUBCLASS Macro
ported from: 1f3cd0dab3
ported-by sithlord48
2025-05-28 14:00:18 +01:00
Povilas Kanapickas
314899ac7d chore: arch, Remove support for lazy error code to string evaluations
This functionality is not needed because in all code paths the error
code is immediately converted to string without actually using the lazy
evaluation functionality.

based-on: 53dff5b803
ported and expanded by sithlord48
2025-05-28 14:00:18 +01:00
sithlord48
3eb3969a01 chore: use final for overrides and remove virtual for non base classes 2025-05-28 09:42:08 +01:00
sithlord48
d2ac36f3ed chore: make more const methods 2025-05-28 09:42:08 +01:00
sithlord48
e6a374369b chore: use const for more local ref and pointer vars 2025-05-28 09:42:08 +01:00
sithlord48
9c56fa5dda chore: Combine unnessessary multi level if into less fewer checks 2025-05-28 09:42:08 +01:00
sithlord48
475b895755 chore: initialize class vars using the order class define, initilizer list, constructor 2025-05-23 10:19:11 -07:00
sithlord48
767919b342 refactor: consolidate IArchString subclasses into ArchString 2025-05-23 17:58:36 +01:00
sithlord48
4224215991 chore: make IArchString::EWideCharEncoding a enum class 2025-05-23 17:58:36 +01:00
sithlord48
45090d6b85 chore: IArchString clean up remaing code smells 2025-05-23 17:58:36 +01:00
sithlord48
fe12972e83 chore: use const pointer / ref where possible 2025-05-22 20:46:41 +01:00
sithlord48
3cf0fb89ef chore: add comment to empty methods 2025-05-20 16:20:07 +01:00
sithlord48
c224cd4661 chore: declare const methods recommened by sonar 2025-05-20 16:20:07 +01:00
sithlord48
635962618f chore: define only one variable per line 2025-05-20 16:20:07 +01:00
sithlord48
0ff72441e6 chore: use c++17 style if,switch init-initilizer where possible
chore: correct spelling of "colon" in NetworkAddresses variables
chore: correct some multi line defines near needed init-initilizers
2025-05-20 16:20:07 +01:00
sithlord48
bdffda9a2f chore: replace typedef with using 2025-05-20 16:20:07 +01:00
sithlord48
cac63937ff chore: cleansmells in ArchDaemon 2025-05-20 16:20:07 +01:00