Ignore:
Timestamp:
Oct 30, 2015, 11:43:20 AM (10 years ago)
Author:
Frederik Heber <heber@…>
Children:
6e2f3b
Parents:
1f96ec
git-author:
Frederik Heber <heber@…> (07/10/15 09:44:07)
git-committer:
Frederik Heber <heber@…> (10/30/15 11:43:20)
Message:

Added static functions to control access to static NotificationChannels.

  • Relay is friend as it uses the mutex when accessing.
  • this is to protect changes in NotificationChannels from changes outside the scope of this library.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Observer/unittests/stubs/ObserverStub.cpp

    r1f96ec rdd7c44  
    136136{
    137137  Channels *OurChannel = new Channels();
    138   NotificationChannels.insert( std::make_pair(this, OurChannel) );
     138  Observable::insertNotificationChannel( std::make_pair(this, OurChannel) );
    139139  OurChannel->addChannel(Operation1Notify);
    140140  OurChannel->addChannel(Operation2Notify);
     
    143143NotificationObservable::~NotificationObservable()
    144144{
    145   NotificationChannels.erase(this);
     145  Observable::eraseNotificationChannel(this);
    146146}
    147147
     
    245245{
    246246  Channels *OurChannel = new Channels();
    247   NotificationChannels.insert( std::make_pair(this, OurChannel) );
     247  Observable::insertNotificationChannel( std::make_pair(this, OurChannel) );
    248248  OurChannel->addChannel(NotificationObservable::Operation1Notify);
    249249  OurChannel->addChannel(NotificationObservable::Operation2Notify);
Note: See TracChangeset for help on using the changeset viewer.