Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions aether/api_protocol/api_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <cassert>
#include <cstdint>
#include <tuple>
#include <vector>

#include "aether-miscpp/serialization/serialization.h"

Expand Down Expand Up @@ -67,8 +66,9 @@ struct Serializer<A, GenericMessage<Ts...>> {
return res;
},
meta.value.fields);
} else {
return Ok{seri::good};
}
return Ok{seri::good};
}

SeriResult Deseri(A& archive, Meta<GenericMessage<Ts...>> meta) const {
Expand All @@ -81,8 +81,9 @@ struct Serializer<A, GenericMessage<Ts...>> {
return res;
},
meta.value.fields);
} else {
return Ok{seri::good};
}
return Ok{seri::good};
}
};
} // namespace seri
Expand Down
2 changes: 1 addition & 1 deletion aether/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@
# define AE_EVENT_HANDLER_MAX_SIZE 48
#endif
#ifndef AE_EVENT_HANDLER_ALIGN
# define AE_EVENT_HANDLER_ALIGN (alignof(void*))
# define AE_EVENT_HANDLER_ALIGN (alignof(std::max_align_t))
#endif

#ifndef NDEBUG
Expand Down
1 change: 1 addition & 0 deletions aether/events/event_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef AETHER_EVENTS_EVENT_HANDLER_H_
#define AETHER_EVENTS_EVENT_HANDLER_H_

#include <cstddef>
#include <utility>

#include "aether-miscpp/types/small_function.h"
Expand Down
4 changes: 4 additions & 0 deletions aether/tasks/details/task_queues.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ class TaskQueue : TaskQueueBase<ITask, Capacity, Pool> {
using base::ReclaimInactive;

bool Add(ITask* p) {
// this is contract, p should not be null
assert(p != nullptr);
if (base::list_.size() == base::list_.max_size()) {
return false;
}
Expand Down Expand Up @@ -139,6 +141,8 @@ class DelayedTaskQueue : TaskQueueBase<IDelayedTask<TP>, Capacity, Pool> {
using base::ReclaimInactive;

bool Add(IDelayedTask<TP>* p) {
// this is contract, p should not be null
assert(p != nullptr);
if (base::list_.size() == base::list_.max_size()) {
return false;
}
Expand Down
Loading