mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -8,9 +8,9 @@
|
|||
|
||||
#include <AK/Assertions.h>
|
||||
#include <AK/Atomic.h>
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/ScopeGuard.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Types.h>
|
||||
#include <bits/pthread_cancel.h>
|
||||
#include <errno.h>
|
||||
|
@ -31,7 +31,7 @@ static constexpr u32 POST_WAKES = 1 << 31;
|
|||
|
||||
static constexpr auto sem_path_prefix = "/tmp/semaphore/"sv;
|
||||
static constexpr auto SEM_NAME_MAX = PATH_MAX - sem_path_prefix.length();
|
||||
static ErrorOr<String> sem_name_to_path(char const* name)
|
||||
static ErrorOr<DeprecatedString> sem_name_to_path(char const* name)
|
||||
{
|
||||
if (name[0] != '/')
|
||||
return EINVAL;
|
||||
|
@ -58,7 +58,7 @@ struct NamedSemaphore {
|
|||
sem_t* sem { nullptr };
|
||||
};
|
||||
|
||||
static HashMap<String, NamedSemaphore> s_named_semaphores;
|
||||
static HashMap<DeprecatedString, NamedSemaphore> s_named_semaphores;
|
||||
static pthread_mutex_t s_sem_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
static pthread_once_t s_sem_once = PTHREAD_ONCE_INIT;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue