Skip to content

Commit

Permalink
sync upstream lib cppmyth 2.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Feb 8, 2024
1 parent fed5ef5 commit 62edc92
Show file tree
Hide file tree
Showing 24 changed files with 1,046 additions and 388 deletions.
7 changes: 4 additions & 3 deletions lib/cppmyth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ endif ()
###############################################################################
# set lib version here
set (PACKAGE_VERSION_MAJOR 2)
set (PACKAGE_VERSION_MINOR 16)
set (PACKAGE_VERSION_PATCH 4)
set (PACKAGE_VERSION_MINOR 17)
set (PACKAGE_VERSION_PATCH 0)

set (PACKAGE_VERSION ${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_PATCH})
set (PACKAGE_LIB_SOVERSION ${PACKAGE_VERSION_MAJOR})
Expand Down Expand Up @@ -142,7 +142,8 @@ file (GLOB SRC_FILES
src/*.cpp)

file (GLOB OS_SRC_FILES
src/private/os/threads/threadpool.cpp)
src/private/os/threads/threadpool.cpp
src/private/os/threads/latch.cpp))

if (MSVC)
list (APPEND OS_SRC_FILES
Expand Down
8 changes: 8 additions & 0 deletions lib/cppmyth/src/local_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,12 @@
#undef LIBVERSION
#define LIBVERSION "@PACKAGE_VERSION@"

#if __cplusplus < 201103L
#undef explicit
#define explicit
#undef nullptr
#define nullptr NULL
#endif


#endif /* CPPMYTH_CONFIG_H */
10 changes: 5 additions & 5 deletions lib/cppmyth/src/mythfileplayback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "mythfileplayback.h"
#include "mythlivetvplayback.h"
#include "private/debug.h"
#include "private/os/threads/mutex.h"
#include "private/os/threads/latch.h"
#include "private/builtin.h"

#include <limits>
Expand Down Expand Up @@ -50,7 +50,7 @@ FilePlayback::~FilePlayback()
bool FilePlayback::Open()
{
// Begin critical section
OS::CLockGuard lock(*m_mutex);
OS::CWriteLock lock(*m_latch);
if (ProtoPlayback::IsOpen())
return true;
return ProtoPlayback::Open();
Expand All @@ -59,15 +59,15 @@ bool FilePlayback::Open()
void FilePlayback::Close()
{
// Begin critical section
OS::CLockGuard lock(*m_mutex);
OS::CWriteLock lock(*m_latch);
CloseTransfer();
ProtoPlayback::Close();
}

bool FilePlayback::OpenTransfer(const std::string& pathname, const std::string& sgname)
{
// Begin critical section
OS::CLockGuard lock(*m_mutex);
OS::CWriteLock lock(*m_latch);
if (!ProtoPlayback::IsOpen())
return false;
CloseTransfer();
Expand All @@ -80,7 +80,7 @@ bool FilePlayback::OpenTransfer(const std::string& pathname, const std::string&
void FilePlayback::CloseTransfer()
{
// Begin critical section
OS::CLockGuard lock(*m_mutex);
OS::CWriteLock lock(*m_latch);
if (m_transfer)
{
TransferDone(*m_transfer);
Expand Down
113 changes: 0 additions & 113 deletions lib/cppmyth/src/mythintrinsic.cpp

This file was deleted.

51 changes: 0 additions & 51 deletions lib/cppmyth/src/mythintrinsic.h

This file was deleted.

Loading

0 comments on commit 62edc92

Please sign in to comment.