OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr40081.C] - Blame information for rev 307

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
struct Atomic_t {
2
    Atomic_t(int i) : val(i) { }
3
    volatile int val;
4
};
5
class RefCount {
6
public:
7
    RefCount(Atomic_t c) : m_count(c)  { }
8
    Atomic_t m_count;
9
};
10
class IntrusiveCountableBase {
11
    RefCount m_useCount;
12
protected:
13
    IntrusiveCountableBase();
14
};
15
IntrusiveCountableBase::IntrusiveCountableBase() : m_useCount(0)  { }
16
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.