Skip to content

Commit

Permalink
fix(frameio): fix build - workaround for a clang bug
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed Jan 27, 2025
1 parent 80ba077 commit 68bbf62
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions frame/code/ac/frameio/local/LocalIoRunner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,21 @@ namespace ac::frameio {
class BlockingIo;
struct LocalEndpoints;

// ideally this would be a nested type in LocalIoRunner, but then a clang bug is triggered:
// https://bugs.llvm.org/show_bug.cgi?id=36684
// to work around this, we have the type external
struct ChannelBufferSizes {
size_t localToRemote = 10;
size_t remoteToLocal = 10;
};

class AC_FRAME_EXPORT LocalIoRunner {
public:
explicit LocalIoRunner(uint32_t numThreads = 2);
LocalIoRunner(const LocalIoRunner&) = delete;
LocalIoRunner& operator=(const LocalIoRunner&) = delete;
~LocalIoRunner();

struct ChannelBufferSizes {
size_t localToRemote = 10;
size_t remoteToLocal = 10;
};

LocalEndpoints getEndpoints(ChannelBufferSizes bufferSizes = {});

BlockingIo connectBlocking(SessionHandlerPtr remoteHandler, ChannelBufferSizes bufferSizes = {});
Expand Down

0 comments on commit 68bbf62

Please sign in to comment.