Added osg::RefBlockCount subclassed from the new OpenThreads::BlockCount and used it into osgterrain example
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
|
||||
namespace osg {
|
||||
|
||||
class RefBlock: virtual public osg::Referenced, public OpenThreads::Block
|
||||
class RefBlock : virtual public osg::Referenced, public OpenThreads::Block
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -36,6 +36,16 @@ class RefBlock: virtual public osg::Referenced, public OpenThreads::Block
|
||||
|
||||
};
|
||||
|
||||
class RefBlockCount : virtual public osg::Referenced, public OpenThreads::BlockCount
|
||||
{
|
||||
public:
|
||||
|
||||
RefBlockCount(unsigned blockCount):
|
||||
osg::Referenced(true),
|
||||
OpenThreads::BlockCount(blockCount) {}
|
||||
|
||||
};
|
||||
|
||||
/** Base class for implementing graphics operations.*/
|
||||
class Operation : virtual public Referenced
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user