summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/lib/osdlib_unix.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2023-04-14 06:45:20 +1000
committer Vas Crabb <vas@vastheman.com>2023-04-14 06:45:20 +1000
commit7d26d641d3e94943b351ad55d7ffe25ec02ac791 (patch)
treed9fabd7ddf5c487711b1ee6b5599d0e4a7cb5902 /src/osd/modules/lib/osdlib_unix.cpp
parentc0b57d30f0ce39c445190fe4e27bec6c57ebb137 (diff)
Miscellaneous improvements:
infoxml.cpp: Thread device processing. Gives about a 10% speed improvement overall, and avoids the need to mess with the locale of the ultimate output stream. debugger/win/consolewininfo.cpp: Show image mount/create error messages on the console. emu/devdelegate.h, util/delegate.h: Added deduction guides for common delegate creation patterns (only used in sega/segas16a.cpp so far). More noexcept on things that have no business throwing exceptions.
Diffstat (limited to 'src/osd/modules/lib/osdlib_unix.cpp')
-rw-r--r--src/osd/modules/lib/osdlib_unix.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/osd/modules/lib/osdlib_unix.cpp b/src/osd/modules/lib/osdlib_unix.cpp
index 0c6eb8622ab..20f6a9ab40c 100644
--- a/src/osd/modules/lib/osdlib_unix.cpp
+++ b/src/osd/modules/lib/osdlib_unix.cpp
@@ -135,7 +135,7 @@ std::error_condition osd_set_clipboard_text(std::string_view text) noexcept
// osd_getpid
//============================================================
-int osd_getpid()
+int osd_getpid() noexcept
{
return getpid();
}
@@ -199,7 +199,7 @@ private:
} // anonymous namespace
-bool invalidate_instruction_cache(void const *start, std::size_t size)
+bool invalidate_instruction_cache(void const *start, std::size_t size) noexcept
{
#if !defined(SDLMAME_EMSCRIPTEN)
char const *const begin(reinterpret_cast<char const *>(start));
@@ -210,7 +210,7 @@ bool invalidate_instruction_cache(void const *start, std::size_t size)
}
-void *virtual_memory_allocation::do_alloc(std::initializer_list<std::size_t> blocks, unsigned intent, std::size_t &size, std::size_t &page_size)
+void *virtual_memory_allocation::do_alloc(std::initializer_list<std::size_t> blocks, unsigned intent, std::size_t &size, std::size_t &page_size) noexcept
{
long const p(sysconf(_SC_PAGE_SIZE));
if (0 >= p)
@@ -247,12 +247,12 @@ void *virtual_memory_allocation::do_alloc(std::initializer_list<std::size_t> blo
return result;
}
-void virtual_memory_allocation::do_free(void *start, std::size_t size)
+void virtual_memory_allocation::do_free(void *start, std::size_t size) noexcept
{
munmap(reinterpret_cast<char *>(start), size);
}
-bool virtual_memory_allocation::do_set_access(void *start, std::size_t size, unsigned access)
+bool virtual_memory_allocation::do_set_access(void *start, std::size_t size, unsigned access) noexcept
{
int prot((NONE == access) ? PROT_NONE : 0);
if (access & READ)