Skip to content

Commit

Permalink
Update ring_buffer.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hnwyllmm authored Oct 8, 2024
1 parent 5031564 commit 1fc23d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/observer/net/ring_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ See the Mulan PSL v2 for more details. */

#pragma once

#ifdef __MUSL__
#include <cstdint>
#endif
#include <stdint.h>

#include "common/rc.h"
#include "common/lang/vector.h"
Expand Down Expand Up @@ -94,4 +92,4 @@ class RingBuffer
vector<char> buffer_; ///< 缓存使用的内存,使用vector方便管理
int32_t data_size_ = 0; ///< 已经写入的数据量
int32_t write_pos_ = 0; ///< 当前写指针的位置,范围不会超出[0, capacity)
};
};

0 comments on commit 1fc23d6

Please sign in to comment.