mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
misc tinkering
This commit is contained in:
parent
9b86c13266
commit
c762fb243f
67 changed files with 1812 additions and 1815 deletions
|
|
@ -545,13 +545,13 @@ private:
|
|||
//==============================================================================
|
||||
void Typeface::initialiseTypefaceCharacteristics (const String& fontName,
|
||||
bool bold, bool italic,
|
||||
bool addAllGlyphsToFont)
|
||||
bool addAllGlyphsToFont) throw()
|
||||
{
|
||||
FreeTypeInterface::getInstance()
|
||||
->createTypeface (fontName, bold, italic, *this, addAllGlyphsToFont);
|
||||
}
|
||||
|
||||
void Typeface::findAndAddSystemGlyph (juce_wchar character)
|
||||
void Typeface::findAndAddSystemGlyph (juce_wchar character) throw()
|
||||
{
|
||||
FreeTypeInterface::getInstance()
|
||||
->addGlyphToFont (character, getName(), isBold(), isItalic(), *this);
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ void Thread::sleep (int millisecs) throw()
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
JUCE_CALLTYPE CriticalSection::CriticalSection() throw()
|
||||
CriticalSection::CriticalSection() throw()
|
||||
{
|
||||
pthread_mutexattr_t atts;
|
||||
pthread_mutexattr_init (&atts);
|
||||
|
|
@ -184,22 +184,22 @@ JUCE_CALLTYPE CriticalSection::CriticalSection() throw()
|
|||
pthread_mutex_init (&internal, &atts);
|
||||
}
|
||||
|
||||
JUCE_CALLTYPE CriticalSection::~CriticalSection() throw()
|
||||
CriticalSection::~CriticalSection() throw()
|
||||
{
|
||||
pthread_mutex_destroy (&internal);
|
||||
}
|
||||
|
||||
void JUCE_CALLTYPE CriticalSection::enter() const throw()
|
||||
void CriticalSection::enter() const throw()
|
||||
{
|
||||
pthread_mutex_lock (&internal);
|
||||
}
|
||||
|
||||
bool JUCE_CALLTYPE CriticalSection::tryEnter() const throw()
|
||||
bool CriticalSection::tryEnter() const throw()
|
||||
{
|
||||
return pthread_mutex_trylock (&internal) == 0;
|
||||
}
|
||||
|
||||
void JUCE_CALLTYPE CriticalSection::exit() const throw()
|
||||
void CriticalSection::exit() const throw()
|
||||
{
|
||||
pthread_mutex_unlock (&internal);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue