[cluster] fill sendbuffer better

use a counter to track available elements.

Some elo gain, on 4 ranks:

Score of old-r4-1t vs new-r4-1t: 422 - 508 - 1694  [0.484] 2624
Elo difference: -11.39 +/- 7.90
This commit is contained in:
Joost VandeVondele
2018-12-15 09:00:19 +01:00
committed by Stéphane Nicolet
parent e526c5aa52
commit ba1c639836
3 changed files with 7 additions and 4 deletions
+1
View File
@@ -79,6 +79,7 @@ public:
struct {
Mutex mutex;
Cluster::TTSendBuffer<Cluster::TTSendBufferSize> buffer = {};
size_t counter = 0;
} ttBuffer;
#endif
};