Changeset 2539
- Timestamp:
- 07/26/23 13:15:40 (18 months ago)
- Location:
- XIOS3/branches/xios-3.0-beta/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/branches/xios-3.0-beta/src/buffer_server.cpp
r2309 r2539 234 234 if (time-bufferFromClientTime_ < bufferFromClientLatency_ ) return false; 235 235 bufferFromClientTime_ = time ; 236 if ( bufferFromClientLatency_ < LATENCY_MAX ) bufferFromClientLatency_ *= 2; // Done to reduce pressure on windows access if not necessary (especially for read on JZ, ex : transect) 236 237 CTimer::get("getBufferFromClient").resume() ; 237 238 size_t clientTimeline ; … … 255 256 if (timeLine==clientTimeline) 256 257 { 258 bufferFromClientLatency_ = LATENCY_DEFAULT; // Reset latency if windows access is used 257 259 buffer=(char*)getBuffer(clientCount) ; 258 260 count=clientCount ; -
XIOS3/branches/xios-3.0-beta/src/buffer_server.hpp
r2323 r2539 43 43 bool hasWindows ; 44 44 int windowsRank_ ; 45 double bufferFromClientLatency_=1e-1 ; 45 const double LATENCY_DEFAULT=1e-1 ; 46 const double LATENCY_MAX=1. ; 47 double bufferFromClientLatency_=LATENCY_DEFAULT ; 46 48 double bufferFromClientTime_ = 0; 47 49
Note: See TracChangeset
for help on using the changeset viewer.