当前位置: 首页>>代码示例>>C++>>正文


C++ UNLOCK函数代码示例

本文整理汇总了C++中UNLOCK函数的典型用法代码示例。如果您正苦于以下问题:C++ UNLOCK函数的具体用法?C++ UNLOCK怎么用?C++ UNLOCK使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了UNLOCK函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: setResultSpeak

void setResultSpeak( Result_Speak& mgr )
{
	RD_LOCK( RESULT_SPEAK );
	result_speak_mgr = mgr;
	UNLOCK( RESULT_SPEAK );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:6,代码来源:IntComm.cpp

示例2: setRequestInference

void setRequestInference(RequestInferenceMgr &mgr) {
	WR_LOCK( REQUEST_INFERENCE );
	request_inference_mgr = mgr;
	UNLOCK( REQUEST_INFERENCE );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:5,代码来源:IntComm.cpp

示例3: SlaveStart

void SlaveStart()
{
  long i;
  long MyNum;
  double *upriv;
  
  //int a = 2*(rootN-1)*sizeof(double);

  //double upriv[a];

  long initdone; 
  long finish; 
  long l_transtime=0;
  long MyFirst; 
  long MyLast;


    
  BARRIER(Global->start, P);

  LOCK(Global->idlock);
    MyNum = Global->id;
    Global->id++;
  UNLOCK(Global->idlock);
    
  

  BARINCLUDE(Global->start);
  
 
  BARRIER(Global->start, P);  

  //upriv = (double *) malloc(2*(rootN-1)*sizeof(double));  
  upriv = (double *) our_malloc(2*(rootN-1)*sizeof(double));
  
  if (upriv == NULL) {
    fprintf(stderr,"Proc %ld could not malloc memory for upriv\n",MyNum);
    exit(-1);
  }
  for (i=0;i<2*(rootN-1);i++) {
    upriv[i] = umain[i];
  }   



  MyFirst = rootN*MyNum/P;
  MyLast = rootN*(MyNum+1)/P;

  TouchArray(x, trans, umain2, upriv, MyFirst, MyLast);


  BARRIER(Global->start, P);

  if ((MyNum == 0) || (dostats)) {
    CLOCK(initdone);
  }

  //printf("\nentrando em forward FFT\n");
  /* perform forward FFT */
  FFT1D(1, M, N, x, trans,  upriv, umain2, MyNum, &l_transtime, MyFirst, 
	MyLast, pad_length, test_result, dostats);



  /* perform backward FFT */
  if (test_result) {
    FFT1D(-1, M, N, x, trans,  upriv, umain2, MyNum, &l_transtime, MyFirst, 
	  MyLast, pad_length, test_result, dostats);
  }  



  if ((MyNum == 0) || (dostats)) {
    CLOCK(finish);
    Global->transtimes[MyNum] = l_transtime;
    Global->totaltimes[MyNum] = finish-initdone;
  }
  if (MyNum == 0) {
    Global->finishtime = finish;
    Global->initdonetime = initdone;
  }

  join_point(&myJoinPoint);
  
}
开发者ID:ArchC,项目名称:MPSoCBench,代码行数:85,代码来源:fft.C

示例4: setResultArm

void setResultArm(ResultArmMgr& mgr)
{
	WR_LOCK( RESULT_ARM );
	result_arm_mgr = mgr;
	UNLOCK( RESULT_ARM );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:6,代码来源:IntComm.cpp

示例5: setHAE

void setHAE(HAEMgr &mgr) {
	WR_LOCK( HAE );
	hae_mgr = mgr;
	UNLOCK( HAE );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:5,代码来源:IntComm.cpp

示例6: setFformation

void setFformation(FformationMgr& mgr)
{
	WR_LOCK(FFORMATION);
	fformation_mgr = mgr;
	UNLOCK(FFORMATION);
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:6,代码来源:IntComm.cpp

示例7: setFaceRecog

void setFaceRecog(FaceRecogMgr& mgr)
{
	WR_LOCK( FACE_RECOG );
	face_recog_mgr = mgr;
	UNLOCK( FACE_RECOG );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:6,代码来源:IntComm.cpp

示例8: setInvalidGoal

void setInvalidGoal(InvalidGoalMgr &mgr)
{
	RD_LOCK( INVALID_GOAL );
	invalid_goal_mgr = mgr;
	UNLOCK( INVALID_GOAL );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:6,代码来源:IntComm.cpp

示例9: setMessageFreq

void setMessageFreq(MessageFreqMgr &mgr)
{
	RD_LOCK( MESSAGE_FREQ );
	message_freq_mgr = mgr;
	UNLOCK( MESSAGE_FREQ );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:6,代码来源:IntComm.cpp

示例10: setServerVel

void setServerVel(ServerVelMgr & mgr)
{
	RD_LOCK( SERVER_VEL );
	server_vel_mgr = mgr;
	UNLOCK( SERVER_VEL );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:6,代码来源:IntComm.cpp

示例11: setPoseMode

void setPoseMode(PoseModeMgr & mgr)
{
	RD_LOCK( POSE_MODE );
	pose_mode_mgr = mgr;
	UNLOCK( POSE_MODE );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:6,代码来源:IntComm.cpp

示例12: setResultNavi

void setResultNavi(Result_Navi & mgr)
{
	RD_LOCK( RESULT_NAVI );
	result_navi_mgr = mgr;
	UNLOCK( RESULT_NAVI );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:6,代码来源:IntComm.cpp

示例13: setActionNavi

void setActionNavi(Action_Navi & mgr)
{
	RD_LOCK( ACTION_NAVI );
	action_navi_mgr = mgr;
	UNLOCK( ACTION_NAVI );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:6,代码来源:IntComm.cpp

示例14: setNaviParMsg

//for Navi
void setNaviParMsg( NaviParMsg& mgr )
{
	WR_LOCK( NAVI_PAR );
	navi_par_mgr = mgr;
	UNLOCK( NAVI_PAR );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:7,代码来源:IntComm.cpp

示例15: setPerception

void setPerception(PerceptionMgr& mgr)
{
	WR_LOCK(PERCEPTION );
	perception_mgr = mgr;
	UNLOCK(PERCEPTION  );
}
开发者ID:EasonChiang7178,项目名称:PersonalizationForRobotServiceProvidingBehavior,代码行数:6,代码来源:IntComm.cpp


注:本文中的UNLOCK函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。