Skip to content

Commit ea03a1d

Browse files
committed
fixed audio rpc packer buffer thread race
1 parent 8aea286 commit ea03a1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/framework/audio/common/rpc/rpcpacker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,6 @@ class RpcPacker
618618
}
619619

620620
static constexpr size_t DEFAULT_CAPACITY = 1024 * 200;
621-
static inline std::vector<uint8_t> buffer = {};
621+
static inline thread_local std::vector<uint8_t> buffer = {};
622622
};
623623
}

0 commit comments

Comments
 (0)