Connection time optimized

This commit is contained in:
2017-11-14 09:18:27 +01:00
parent 4d9a8fd116
commit 350ddab997
47 changed files with 350899 additions and 701 deletions

View File

@@ -451,7 +451,10 @@ int CAFE::get(const unsigned int _handle, vector<long long> & V,
if ( channelInfo.getCafeConnectionState() == ICAFE_CS_NEVER_CONN) {
return ICAFE_CS_NEVER_CONN;
}
else if ( channelInfo.getCafeConnectionState()==ICAFE_CS_CLOSED) {
return ICAFE_CS_CLOSED;
}
unsigned int nelemThatWillBeRequested= (*it_handle).getChannelRegalia().getNelem();
//Reserve only what will be in the buffer.
@@ -2714,7 +2717,10 @@ int CAFE::set(const unsigned int _handle, vector<long long> V) {
if ( channelInfo.getCafeConnectionState() == ICAFE_CS_NEVER_CONN) {
return ICAFE_CS_NEVER_CONN;
}
else if ( channelInfo.getCafeConnectionState()==ICAFE_CS_CLOSED) {
return ICAFE_CS_CLOSED;
}
switch ( channelInfo.getDataType()) {
case DBR_DOUBLE: