/[svn]/linuxsampler/trunk/src/common/SynchronizedConfig.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/SynchronizedConfig.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2505 by schoenebeck, Fri Jan 10 12:20:05 2014 UTC revision 2506 by schoenebeck, Sun Jan 12 11:27:05 2014 UTC
# Line 123  namespace LinuxSampler { Line 123  namespace LinuxSampler {
123              T& GetConfigForUpdate();              T& GetConfigForUpdate();
124    
125              /**              /**
126               * Get the data on update side <b>unprotected</b>, that is               * Get the data on update side for read-only access.
              * <b>without</b> locking or any means of synchronizations.  
              *  
              * Due to its nature this must only be called for read access and  
              * you have to make sure by yourself, that the data/member you  
              * access is really safe for concurrent read access (i.e. SGI's  
              * implementation of std::vector::size() would be safe).  
              *  
              * Only use this when you are absolutely sure what you are doing!  
127               */               */
128              const T& GetUnsafeUpdateConfig() const {              const T& GetUnsafeUpdateConfig() const {
129                  return config[updateIndex];                  return config[updateIndex];

Legend:
Removed from v.2505  
changed lines
  Added in v.2506

  ViewVC Help
Powered by ViewVC