Changeset 039e15


Ignore:
Timestamp:
May 5, 2016, 9:19:04 AM (9 years ago)
Author:
Frederik Heber <heber@…>
Children:
c6a59b
Parents:
1870aa
git-author:
Frederik Heber <heber@…> (05/05/16 08:58:01)
git-committer:
Frederik Heber <heber@…> (05/05/16 09:19:04)
Message:

Added AtomicInstance as a mutex-locked wrapper around a given entity.

  • this should help in multi-threaded codes to prevent accessing the entity from more than one thread at once: Lock the entity by accessing it within a scope while wrapped in AtomicInstance.
Location:
src
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/Patterns/Makefile.am

    r1870aa r039e15  
    1 # PLEASE adhere to the alphabetical ordering in this Makefile!
     1 # PLEASE adhere to the alphabetical ordering in this Makefile!
    22# Also indentation by a single tab
    33
     
    1111
    1212PATTERNHEADER = \
     13        $(top_srcdir)/src/CodePatterns/AtomicInstance.hpp \
     14        $(top_srcdir)/src/CodePatterns/AtomicInstance_impl.hpp \
    1315        $(top_srcdir)/src/CodePatterns/Cacheable.hpp \
    1416        $(top_srcdir)/src/CodePatterns/Clone.hpp \
  • src/Patterns/unittests/Makefile.am

    r1870aa r039e15  
    55
    66TESTS += \
     7        AtomicInstanceUnitTest \
    78        CacheableUnitTest \
    89        CloneUnitTest \
     
    1718
    1819TESTSOURCES += \
     20        ../Patterns/unittests/AtomicInstanceUnitTest.cpp \
    1921        ../Patterns/unittests/CacheableUnitTest.cpp \
    2022        ../Patterns/unittests/CloneUnitTest.cpp \
     
    7173noinst_PROGRAMS += $(TESTS)
    7274
     75AtomicInstanceUnitTest_SOURCES = UnitTestMain.cpp \
     76        ../Patterns/unittests/AtomicInstanceUnitTest.cpp \
     77        ../Patterns/unittests/AtomicInstanceUnitTest.hpp
     78AtomicInstanceUnitTest_LDADD = \
     79        ../Helpers/libcodepatterns-Helpers-debug.la
     80
    7381CacheableUnitTest_SOURCES = UnitTestMain.cpp \
    7482        ../Patterns/unittests/CacheableUnitTest.cpp \
Note: See TracChangeset for help on using the changeset viewer.