*: add "noexcept" to many, many function prototypes
This eliminates some overhead, because the compiler doesn't need to consider these functions throwing.
This commit is contained in:
src
AudioFormat.cxxAudioFormat.hxxDetachedSong.cxxDetachedSong.hxxIOThread.cxxIOThread.hxxIdleFlags.cxxIdleFlags.hxxMapper.cxxMapper.hxxMusicBuffer.cxxMusicBuffer.hxxMusicChunk.cxxMusicChunk.hxxMusicPipe.cxxMusicPipe.hxxReplayGainInfo.cxxReplayGainInfo.hxxReplayGainMode.cxxReplayGainMode.hxxSongFilter.cxxSongFilter.hxxStateFile.cxxStateFile.hxxTagStream.cxxls.cxxls.hxx
archive
client
command
CommandError.cxxFileCommands.cxxNeighborCommands.cxxNeighborCommands.hxxPlaylistCommands.cxxPlaylistCommands.hxxStorageCommands.cxx
config
db
DatabaseLock.hxxLightSong.cxxLightSong.hxxPlaylistVector.cxxPlaylistVector.hxxRegistry.cxxRegistry.hxxSelection.cxxSelection.hxx
plugins
update
decoder
Bridge.cxxBridge.hxxDecoderControl.cxxDecoderControl.hxxDecoderList.cxxDecoderList.hxxDecoderPlugin.cxxDecoderPlugin.hxxDecoderThread.cxx
plugins
event
filter
fs
AllocatedPath.cxxAllocatedPath.hxxCharset.cxxCharset.hxxPath.cxxPath.hxxPath2.cxxStandardDirectory.cxxStandardDirectory.hxxTraits.cxxTraits.hxx
io
input
AsyncInputStream.cxxAsyncInputStream.hxxInputStream.cxxInputStream.hxxProxyInputStream.cxxProxyInputStream.hxxThreadInputStream.cxxThreadInputStream.hxx
plugins
lib
curl
expat
ffmpeg
icu
nfs
upnp
mixer
neighbor
net
AllocatedSocketAddress.cxxAllocatedSocketAddress.hxxSocketAddress.cxxSocketAddress.hxxSocketError.cxxSocketError.hxxStaticSocketAddress.cxxStaticSocketAddress.hxxToString.cxxToString.hxx
output
Init.cxxInternal.cxxInternal.hxxMultipleOutputs.cxxMultipleOutputs.hxxOutputPlugin.cxxOutputPlugin.hxxSharedPipeConsumer.cxxSharedPipeConsumer.hxxSource.cxxSource.hxxWrapper.hxx
plugins
pcm
ChannelsConverter.cxxChannelsConverter.hxxFloatConvert.hxxFormatConverter.cxxFormatConverter.hxxPcmExport.cxxPcmExport.hxxPcmFormat.cxxPcmFormat.hxxPcmUtils.hxxSampleFormat.cxxSampleFormat.hxxSoxrResampler.cxxVolume.cxxVolume.hxx
player
playlist
queue
sticker
storage
CompositeStorage.cxxCompositeStorage.hxxConfigured.cxxConfigured.hxxRegistry.cxxRegistry.hxxStorageInterface.cxxStorageInterface.hxx
plugins
system
tag
Format.cxxFormat.hxxId3Load.cxxSettings.hxxTag.cxxTag.hxxTagBuilder.cxxTagBuilder.hxxTagId3.cxxTagString.cxxTagTable.cxxTagTable.hxxVorbisComment.cxxVorbisComment.hxx
thread
unix
util
test
@@ -54,7 +54,7 @@ DecoderBridge::~DecoderBridge()
|
||||
}
|
||||
|
||||
bool
|
||||
DecoderBridge::CheckCancelRead() const
|
||||
DecoderBridge::CheckCancelRead() const noexcept
|
||||
{
|
||||
if (error)
|
||||
/* this translates to DecoderCommand::STOP */
|
||||
@@ -78,7 +78,7 @@ DecoderBridge::CheckCancelRead() const
|
||||
* one.
|
||||
*/
|
||||
static DecoderCommand
|
||||
need_chunks(DecoderControl &dc)
|
||||
need_chunks(DecoderControl &dc) noexcept
|
||||
{
|
||||
if (dc.command == DecoderCommand::NONE)
|
||||
dc.Wait();
|
||||
@@ -87,14 +87,14 @@ need_chunks(DecoderControl &dc)
|
||||
}
|
||||
|
||||
static DecoderCommand
|
||||
LockNeedChunks(DecoderControl &dc)
|
||||
LockNeedChunks(DecoderControl &dc) noexcept
|
||||
{
|
||||
const std::lock_guard<Mutex> protect(dc.mutex);
|
||||
return need_chunks(dc);
|
||||
}
|
||||
|
||||
MusicChunk *
|
||||
DecoderBridge::GetChunk()
|
||||
DecoderBridge::GetChunk() noexcept
|
||||
{
|
||||
DecoderCommand cmd;
|
||||
|
||||
@@ -177,7 +177,7 @@ DecoderBridge::PrepareInitialSeek()
|
||||
}
|
||||
|
||||
DecoderCommand
|
||||
DecoderBridge::GetVirtualCommand()
|
||||
DecoderBridge::GetVirtualCommand() noexcept
|
||||
{
|
||||
if (error)
|
||||
/* an error has occurred: stop the decoder plugin */
|
||||
@@ -192,7 +192,7 @@ DecoderBridge::GetVirtualCommand()
|
||||
}
|
||||
|
||||
DecoderCommand
|
||||
DecoderBridge::LockGetVirtualCommand()
|
||||
DecoderBridge::LockGetVirtualCommand() noexcept
|
||||
{
|
||||
const std::lock_guard<Mutex> protect(dc.mutex);
|
||||
return GetVirtualCommand();
|
||||
|
Reference in New Issue
Block a user