在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2069|回复: 0

请教一个systemc的问题!!

[复制链接]
发表于 2006-3-18 10:27:27 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
请教一个systemc的问题!!就是sc_semaphore_if.h文件中,如下所示,私有成员
private:
    // disabled
    sc_semaphore_if( const sc_semaphore_if& );
    sc_semaphore_if& operator = ( const sc_semaphore_if& );
为什么是disable呢,我想这里第一个私有成员是一个构造体,第二个是一个重载赋值运算符。怎么是失效呢? 谢谢拉!!
接口源程序如下所示:
    #ifndef SC_SEMAPHORE_IF_H
#define SC_SEMAPHORE_IF_H
#include "sysc/communication/sc_interface.h"
namespace sc_core {
// ----------------------------------------------------------------------------
//  CLASS : sc_semaphore_if
//
//  The sc_semaphore_if interface class.
// ----------------------------------------------------------------------------
class sc_semaphore_if
: virtual public sc_interface
{
public:
    // the classical operations: wait(), trywait(), and post()
    // lock (take) the semaphore, block if not available
    virtual int wait() = 0;
    // lock (take) the semaphore, return -1 if not available
    virtual int trywait() = 0;
    // unlock (give) the semaphore
    virtual int post() = 0;
    // get the value of the semphore
    virtual int get_value() const = 0;
protected:
    // constructor
    sc_semaphore_if()
{}
private:
    // disabled
    sc_semaphore_if( const sc_semaphore_if& );
    sc_semaphore_if& operator = ( const sc_semaphore_if& );
};
} // namespace sc_core
#endif
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-9 15:51 , Processed in 0.026557 second(s), 9 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表