URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
struct Atomic_t {
|
struct Atomic_t {
|
Atomic_t(int i) : val(i) { }
|
Atomic_t(int i) : val(i) { }
|
volatile int val;
|
volatile int val;
|
};
|
};
|
class RefCount {
|
class RefCount {
|
public:
|
public:
|
RefCount(Atomic_t c) : m_count(c) { }
|
RefCount(Atomic_t c) : m_count(c) { }
|
Atomic_t m_count;
|
Atomic_t m_count;
|
};
|
};
|
class IntrusiveCountableBase {
|
class IntrusiveCountableBase {
|
RefCount m_useCount;
|
RefCount m_useCount;
|
protected:
|
protected:
|
IntrusiveCountableBase();
|
IntrusiveCountableBase();
|
};
|
};
|
IntrusiveCountableBase::IntrusiveCountableBase() : m_useCount(0) { }
|
IntrusiveCountableBase::IntrusiveCountableBase() : m_useCount(0) { }
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.