v1.0.0-rc.128 (#35)
All checks were successful
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 11m39s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 12m0s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 13m42s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 13m3s
Build Packages / Generate python client (push) Successful in 1m25s
Build Packages / Build documentation (push) Successful in 53s
Build Packages / Unit tests (push) Has been skipped
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 14m55s
Build Packages / build:rpm (rocky8) (push) Successful in 12m5s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 13m35s
Build Packages / build:rpm (rocky9) (push) Successful in 11m32s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 9m15s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 9m53s
All checks were successful
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 11m39s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 12m0s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 13m42s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 13m3s
Build Packages / Generate python client (push) Successful in 1m25s
Build Packages / Build documentation (push) Successful in 53s
Build Packages / Unit tests (push) Has been skipped
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 14m55s
Build Packages / build:rpm (rocky8) (push) Successful in 12m5s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 13m35s
Build Packages / build:rpm (rocky9) (push) Successful in 11m32s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 9m15s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 9m53s
This is an UNSTABLE release. The release has significant modifications and bug fixes, if things go wrong, it is better to revert to 1.0.0-rc.124. * jfjoch_broker: Handle properly reuse of image buffer locations * jfjoch_broker: Fix bug in counting idle slots * jfjoch_broker: Force obtuse angle for monoclinic cells * jfjoch_process: Change scaling refinement tolerance Reviewed-on: #35 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch> Co-committed-by: Filip Leonarski <filip.leonarski@psi.ch>
This commit was merged in pull request #35.
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
#include "ThreadSafeFIFO.h"
|
||||
|
||||
ZeroCopyReturnValue::ZeroCopyReturnValue(void *in_ptr, ImageBuffer &in_ctrl, uint32_t in_handle)
|
||||
: ptr(in_ptr), payload_size(0), image_number(-1), buf_ctrl(in_ctrl), handle(in_handle),
|
||||
indexed(false) {
|
||||
: ptr(in_ptr), payload_size(0), image_number(-1), buf_ctrl(in_ctrl), handle(in_handle),
|
||||
indexed(false) {
|
||||
}
|
||||
|
||||
void ZeroCopyReturnValue::SetImageNumber(int64_t in_image_number) {
|
||||
@@ -23,20 +23,21 @@ size_t ZeroCopyReturnValue::GetImageSize() const {
|
||||
return payload_size;
|
||||
}
|
||||
|
||||
void * ZeroCopyReturnValue::GetImage() const {
|
||||
void *ZeroCopyReturnValue::GetImage() const {
|
||||
return ptr;
|
||||
}
|
||||
|
||||
void ZeroCopyReturnValue::release() {
|
||||
if (status == ImageBufferEntryStatus::InPreparation)
|
||||
ReadyToSend();
|
||||
if (status == ImageBufferEntryStatus::InPreparation)
|
||||
ReadyToSend();
|
||||
|
||||
if (status == ImageBufferEntryStatus::Sending) {
|
||||
buf_ctrl.ReleaseSlot(handle);
|
||||
} else {
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Trying to send image that is not in preparation");
|
||||
}
|
||||
if (status == ImageBufferEntryStatus::Sending) {
|
||||
buf_ctrl.ReleaseSlot(handle);
|
||||
status = ImageBufferEntryStatus::InPreparation;
|
||||
} else {
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Trying to send image that is not in preparation");
|
||||
}
|
||||
}
|
||||
|
||||
int64_t ZeroCopyReturnValue::GetImageNumber() const {
|
||||
|
||||
Reference in New Issue
Block a user