Changeset 34:ad3194cb9bef in xplcommon


Ignore:
Timestamp:
01/02/13 16:46:04 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 2 'hg:/home/ivaradi/xplane/hg/xplcommon' '/'>, 'public')
Message:

Implemented a conditional variable

Files:
6 added
6 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/Makefile.am

    r32 r34  
    2929        Thread.h                \
    3030        Mutex.h                 \
     31        CondVar.h               \
    3132        Failable.h              \
    3233        Waiter.h                \
  • src/xplcommon/posix/Makefile.am

    r32 r34  
    33libxplcommon_posix_la_SOURCES = \
    44        Thread.cc               \
     5        CondVar.cc              \
    56        Waitable.cc             \
    67        Waiter.cc               \
     
    2223        Thread.h                \
    2324        Mutex.h                 \
     25        CondVar.h               \
    2426        Waitable.h              \
    2527        Waiter.h                \
  • src/xplcommon/posix/Mutex.h

    r32 r34  
    7979     */
    8080    void unlock();
     81
     82    friend class CondVar;
    8183};
    8284
  • src/xplcommon/win32/Makefile.am

    r32 r34  
    33libxplcommon_win32_la_SOURCES = \
    44        Thread.cc               \
     5        CondVar.cc              \
    56        Event.cc                \
    67        Overlapped.cc           \
     
    1718        Thread.h                \
    1819        Mutex.h                 \
     20        CondVar.h               \
    1921        EventFailable.h         \
    2022        Event.h                 \
  • src/xplcommon/win32/Mutex.h

    r33 r34  
    7979     */
    8080    void unlock();
     81
     82    friend class CondVar;
    8183};
    8284
  • test/Makefile.am

    r32 r34  
    11INCLUDES=-I$(top_srcdir)/src
    22
    3 noinst_PROGRAMS=testevent testlocsock testblkstream testmutex
     3noinst_PROGRAMS=testevent testlocsock testblkstream testmutex testcondvar
    44if TARGET_API_POSIX
    55noinst_PROGRAMS+=testrandom
     
    4242endif
    4343
     44testcondvar_SOURCES=testcondvar.cc
     45testcondvar_LDADD=../src/xplcommon/libxplcommon.la
     46if TARGET_API_POSIX
     47testcondvar_LDADD+=-lpthread
     48endif
     49if TARGET_API_WIN32
     50testcondvar_LDFLAGS=-static-libgcc -static-libstdc++
     51endif
     52
    4453testrandom_SOURCES=testrandom.cc
    4554testrandom_LDADD=../src/xplcommon/libxplcommon.la
Note: See TracChangeset for help on using the changeset viewer.