Skip to content

Commit

Permalink
refactor: don't expose internals front_ and back_ of rshared_object
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolforg committed Oct 11, 2023
1 parent bdd8ef0 commit c509190
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ETL/ETL/_handle.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ class handle
*/
class rshared_object : public shared_object
{
private:
mutable int rrefcount;
template<class T> friend class rhandle;

mutable std::atomic<int> rrefcount;

public:
void *front_;
void *back_;

Expand Down Expand Up @@ -303,7 +303,6 @@ class rshared_object : public shared_object
template <class T>
class rhandle : public handle<T>
{
friend class rshared_object;
public:

typedef T value_type;
Expand Down

0 comments on commit c509190

Please sign in to comment.