mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-08 04:20:09 +00:00
Many more String changes, so that finally the String class can store its internal data as either utf8, 16 or 32 - this is controlled by a flag JUCE_STRING_UTF_TYPE. It's currently set to utf-8 by default.
This commit is contained in:
parent
f471f0a72d
commit
533e7ba795
46 changed files with 993 additions and 706 deletions
|
|
@ -166,7 +166,7 @@ void Thread::setCurrentThreadName (const String& name)
|
|||
} info;
|
||||
|
||||
info.dwType = 0x1000;
|
||||
info.szName = name.toCString();
|
||||
info.szName = name.toUTF8();
|
||||
info.dwThreadID = GetCurrentThreadId();
|
||||
info.dwFlags = 0;
|
||||
|
||||
|
|
@ -337,7 +337,7 @@ void PlatformUtilities::freeDynamicLibrary (void* h)
|
|||
|
||||
void* PlatformUtilities::getProcedureEntryPoint (void* h, const String& name)
|
||||
{
|
||||
return (h != 0) ? (void*) GetProcAddress ((HMODULE) h, name.toCString()) : 0; // (void* cast is required for mingw)
|
||||
return (h != 0) ? (void*) GetProcAddress ((HMODULE) h, name.toUTF8()) : 0; // (void* cast is required for mingw)
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -345,10 +345,11 @@ void* PlatformUtilities::getProcedureEntryPoint (void* h, const String& name)
|
|||
class InterProcessLock::Pimpl
|
||||
{
|
||||
public:
|
||||
Pimpl (const String& name, const int timeOutMillisecs)
|
||||
Pimpl (String name, const int timeOutMillisecs)
|
||||
: handle (0), refCount (1)
|
||||
{
|
||||
handle = CreateMutex (0, TRUE, ("Global\\" + name.replaceCharacter ('\\','/')).toUTF16());
|
||||
name = "Local\\" + name.replaceCharacter ('\\', '/');
|
||||
handle = CreateMutexW (0, TRUE, name.toUTF16().getAddress());
|
||||
|
||||
if (handle != 0 && GetLastError() == ERROR_ALREADY_EXISTS)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue