mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-20 01:14:20 +00:00
Updated Timer code to avoid a rare messaging problem. Fixed a couple of minor build errors. Rearranged the atomic functions and added a new compare-and-swap operation. Added a thread-priority tweak to WASAPI. Removed MS-specific classes from the web browser component.
This commit is contained in:
parent
c86c7a8011
commit
35a4b5085f
18 changed files with 559 additions and 640 deletions
|
|
@ -98,8 +98,7 @@ MemoryBlock& MemoryBlock::operator= (const MemoryBlock& other) throw()
|
|||
//==============================================================================
|
||||
bool MemoryBlock::operator== (const MemoryBlock& other) const throw()
|
||||
{
|
||||
return (size == other.size)
|
||||
&& (memcmp (data, other.data, size) == 0);
|
||||
return matches (other.data, other.size);
|
||||
}
|
||||
|
||||
bool MemoryBlock::operator!= (const MemoryBlock& other) const throw()
|
||||
|
|
@ -107,6 +106,12 @@ bool MemoryBlock::operator!= (const MemoryBlock& other) const throw()
|
|||
return ! operator== (other);
|
||||
}
|
||||
|
||||
bool MemoryBlock::matches (const void* dataToCompare, size_t dataSize) const throw()
|
||||
{
|
||||
return size == dataSize
|
||||
&& memcmp (data, dataToCompare, size) == 0;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// this will resize the block to this size
|
||||
void MemoryBlock::setSize (const size_t newSize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue