Skip to content

Commit

Permalink
fix inconsistent indent issues in semaphore code
Browse files Browse the repository at this point in the history
in some places tabs were mixed with 4 spaces for indentation
note: only fixed cases related to timeline semaphore code to avoid merge conflicts
  • Loading branch information
MoritzRoth committed Oct 14, 2023
1 parent 1e605e6 commit cb811b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/avk/commands.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ namespace avk
return semaphore_value_info{std::move(aSemaphore), aValue};
}

struct semaphore_wait_info
struct semaphore_wait_info
{
avk::resource_argument<avk::semaphore_t> mWaitSemaphore;
avk::stage::pipeline_stage_flags mDstStage;
Expand Down
12 changes: 6 additions & 6 deletions src/avk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7181,17 +7181,17 @@ namespace avk

void semaphore_t::signal(uint64_t aNewValue) const {
auto info = vk::SemaphoreSignalInfo{}
.setSemaphore(mSemaphore.get())
.setValue(aNewValue);
.setSemaphore(mSemaphore.get())
.setValue(aNewValue);
mSemaphore.getOwner().signalSemaphore(info);
}

void semaphore_t::wait_until_signaled(uint64_t aSignalValue, std::optional<uint64_t> aTimeout) const {
vk::SemaphoreWaitInfo info{
vk::SemaphoreWaitFlags{},
1u,
handle_addr(),
&aSignalValue
vk::SemaphoreWaitFlags{},
1u,
handle_addr(),
&aSignalValue
};
mSemaphore.getOwner().waitSemaphores(info, aTimeout.value_or(UINT64_MAX));
}
Expand Down

0 comments on commit cb811b1

Please sign in to comment.