您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ waitForEvent函数代码示例

51自学网 2021-06-03 09:50:22
  C++
这篇教程C++ waitForEvent函数代码示例写得很实用,希望能帮到您。

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

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

示例1: onStart

void AmSession::run(){  try {    try {      onStart();      while (!sess_stopped.get() || 	     (dlg.getStatus() == AmSipDialog::Disconnecting)//  ||	     // (dlg.getUACTransPending())	     ){	waitForEvent();	processEvents();	DBG("%s dlg.getUACTransPending() = %i/n",	    dlg.callid.c_str(),dlg.getUACTransPending());      }	          if ( dlg.getStatus() != AmSipDialog::Disconnected ) {			DBG("dlg '%s' not terminated: sending bye/n",dlg.callid.c_str());	if(dlg.bye() == 0){	  while ( dlg.getStatus() != AmSipDialog::Disconnected ){	    waitForEvent();	    processEvents();	  }	}	else {	  WARN("failed to terminate call properly/n");	}      }    }    catch(const AmSession::Exception& e){ throw e; }    catch(const string& str){      ERROR("%s/n",str.c_str());      throw AmSession::Exception(500,"unexpected exception.");    }    catch(...){      throw AmSession::Exception(500,"unexpected exception.");    }  }  catch(const AmSession::Exception& e){    ERROR("%i %s/n",e.code,e.reason.c_str());  }	  destroy();      // wait at least until session is out of RtpScheduler  DBG("session is stopped./n");  //detached.wait_for();}
开发者ID:BackupTheBerlios,项目名称:sems-svn,代码行数:52,


示例2: allocNotifyEvent

bool EventValidator::waitForNotifyEvent(SIPX_NOTIFY_INFO* event,                                         bool bStrictOrderMatch,                                         int iTimeoutInSecs) {    bool bFound = true;    if (!isIgnoredCateogry(EVENT_CATEGORY_NOTIFY))    {       UtlString* pString = allocNotifyEvent(event);       bFound = waitForEvent(pString->data(), bStrictOrderMatch, iTimeoutInSecs);       delete pString;    }    if (!bFound)    {       // Wait a second for any additional events to pour in -- useful for       // debugging.       OsTask::delay(1000);       report();    }    return bFound; } 
开发者ID:Jaroslav23,项目名称:sipxtapi,代码行数:25,


示例3: main

int main(void){    // instantiate window    GWindow window = newGWindow(320, 240);    // instantiate button    GButton button = newGButton("Button");    setActionCommand(button, "click");    // add button to southern region of window    addToRegion(window, button, "SOUTH");    // listen for events    while (true)    {        // wait for event        GActionEvent event = waitForEvent(ACTION_EVENT);        // if window was closed        if (getEventType(event) == WINDOW_CLOSED)        {            break;        }        // if action command is "click"        if (strcmp(getActionCommand(event), "click") == 0)        {            printf("button was clicked/n");        }    }    // that's all folks    closeGWindow(window);    return 0;}
开发者ID:enilsen16,项目名称:bounce,代码行数:35,


示例4: allocSubStatusEvent

bool EventValidator::waitForSubStatusEvent(SIPX_SUBSCRIPTION_STATE state,                                            SIPX_SUBSCRIPTION_CAUSE cause,                                            bool bStrictOrderMatch,                                            int iTimeoutInSecs) {    bool bFound = true;    if (!isIgnoredCateogry(EVENT_CATEGORY_SUB_STATUS))    {       UtlString* pString = allocSubStatusEvent(state, cause);       bFound = waitForEvent(pString->data(), bStrictOrderMatch, iTimeoutInSecs);       delete pString;    }    if (!bFound)    {       // Wait a second for any additional events to pour in -- useful for       // debugging.       OsTask::delay(1000);       report();    }    return bFound; } 
开发者ID:Jaroslav23,项目名称:sipxtapi,代码行数:26,


示例5: allocInfoEvent

bool EventValidator::waitForInfoEvent(SIPX_CALL hCall,                                      SIPX_LINE hLine,                                      const char* szContentType,                                      const char* szContent,                                      int nContentLength,                                      bool bStrictOrderMatch,                                       int iTimeoutInSecs) {   bool bFound = true;   if (!isIgnoredCateogry(EVENT_CATEGORY_INFO))   {      UtlString* pString = allocInfoEvent(hCall,         hLine,         szContentType,         szContent,         nContentLength);      bFound = waitForEvent(pString->data(), bStrictOrderMatch, iTimeoutInSecs);      delete pString;   }   if (!bFound)   {      // Wait a second for any additional events to pour in -- useful for       // debugging.      OsTask::delay(1000);      report();   }   return bFound;}
开发者ID:Jaroslav23,项目名称:sipxtapi,代码行数:33,


示例6: allocLineStateEntry

bool EventValidator::waitForLineEvent(SIPX_LINE hLine,                                       SIPX_LINESTATE_EVENT event,                                       SIPX_LINESTATE_CAUSE cause,                                      bool bStrictOrderMatch,                                       int iTimeoutInSecs) {   bool bFound = true;   if (!isIgnoredCateogry(EVENT_CATEGORY_LINESTATE))   {      UtlString* pString = allocLineStateEntry(hLine,         event,         cause);      bFound = waitForEvent(pString->data(), bStrictOrderMatch, iTimeoutInSecs);      delete pString;   }   if (!bFound)   {      // Wait a second for any additional events to pour in -- useful for       // debugging.      OsTask::delay(1000);      report();   }   return bFound;}
开发者ID:Jaroslav23,项目名称:sipxtapi,代码行数:32,


示例7: allocMessageEvent

bool EventValidator::waitForMessage(SIPX_LINE hLine,                                     const char* szMsg,                                    bool bStrictOrderMatch,                                     int iTimeoutInSecs) {   bool bFound = true;   if (!isMessageIgnored())   {      UtlString* pString = allocMessageEvent(hLine, szMsg);      bFound = waitForEvent(pString->data(), bStrictOrderMatch, iTimeoutInSecs);      delete pString;      if (!bFound)      {         // Wait a second for any additional events to pour in -- useful for          // debugging.         OsTask::delay(1000);         report();      }   }   return bFound;}
开发者ID:Jaroslav23,项目名称:sipxtapi,代码行数:26,


示例8: AssertPtrReturn

int GuestFile::i_waitForOffsetChange(GuestWaitEvent *pEvent,                                     uint32_t uTimeoutMS, uint64_t *puOffset){    AssertPtrReturn(pEvent, VERR_INVALID_POINTER);    VBoxEventType_T evtType;    ComPtr<IEvent> pIEvent;    int vrc = waitForEvent(pEvent, uTimeoutMS,                           &evtType, pIEvent.asOutParam());    if (RT_SUCCESS(vrc))    {        if (evtType == VBoxEventType_OnGuestFileOffsetChanged)        {            if (puOffset)            {                ComPtr<IGuestFileOffsetChangedEvent> pFileEvent = pIEvent;                Assert(!pFileEvent.isNull());                HRESULT hr = pFileEvent->COMGETTER(Offset)((LONG64*)puOffset);                ComAssertComRC(hr);            }        }        else            vrc = VWRN_GSTCTL_OBJECTSTATE_CHANGED;    }    return vrc;}
开发者ID:svn2github,项目名称:virtualbox,代码行数:28,


示例9: init_device

/* * Initialization before T-Kernel starts */EXPORT ER init_device( void ){	UINT prid = get_prid();IMPORT	void	CountWaitUsec( void );	/* cntwus.c */	if (prid == 0) {		/* Initialization of kernel use spin lock */		InitCountSpinLock(&SpinLockObj);		/* Compute loop count of micro second wait */		CountWaitUsec();		/* Save system shared information */		SaveSCInfo = SCInfo;		/* Set boot device */		if ( SCInfo.bootdev[0] != '/0' ) {			strncpy((char*)bootdevnm, (char*)SCInfo.bootdev, L_DEVNM+1);			BootDeviceName = bootdevnm;		} else {			BootDeviceName = NULL;	/* No boot device */		}	}	else{		// wait for first processor complete initialize		waitForEvent();	}	return E_OK;}
开发者ID:kidasan,项目名称:tkernel,代码行数:34,


示例10: main

int main(void){	memset(&addr_msg, 0, sizeof(struct sockaddr_nl));	addr_msg.nl_family = AF_NETLINK;	memset(&addr_poll, 0, sizeof(struct sockaddr_nl));	addr_poll.nl_family = AF_NETLINK;	addr_poll.nl_groups = RTMGRP_LINK | RTMGRP_IPV4_IFADDR;	addr_poll.nl_pid = 0;	/* Create netlink sockets */	nl_socket_msg = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);	if (nl_socket_msg <= 0) {		perror("create netlink msg socket");		goto error;	}	if (bind(nl_socket_msg, (struct sockaddr *)(&addr_msg), sizeof(struct sockaddr_nl))) {		perror("bind netlink msg socket");		goto error;	}	nl_socket_poll = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);	if (nl_socket_poll <= 0) {		perror("create netlink poll socket");		goto error;	}	if(bind(nl_socket_poll, (struct sockaddr *)(&addr_poll), sizeof(struct sockaddr_nl))) {		perror("bind netlink poll socket");		goto error;	}	/* init data structure for trackable interface */	ifdata = (interface_info_t *) malloc(sizeof(interface_info_t));	if (ifdata == NULL) {		printf("no memory to allocate ifdata/n");		goto error;	}	ifdata->name = strndup((char *) IFNAME, SYSFS_PATH_MAX);	ifdata->i = -1;	while (1) {		waitForEvent();	}	return 0;error:	if (nl_socket_msg > 0)		close(nl_socket_msg);	if (nl_socket_poll > 0)		close(nl_socket_poll);	return -1;}
开发者ID:LANC003,项目名称:sys,代码行数:60,


示例11: main

main(int argc, char **argv){    pthread_t ctlThr, evThr;    char *hostname;    int port;    //    if (argc != 3) {        fprintf(stderr, "Usage: %s host-name port/n", argv[0]);        fflush(stderr);        exit(-1);    }    hostname = argv[1];    if ((port = atoi(argv[2])) <= 0) {        fprintf(stderr, "Bad port number: %s/n", argv[2]);        fflush(stderr);        exit(-1);    }    //    initHW(hostname, port);    fprintf(stdout, "singe thread .../n");    fprintf(stdout, "waiting for 5 seconds .. /n");    sleep(5);    fprintf(stdout, "opening all doors/n");    handleDoor(0, DoorOpen);    fprintf(stdout, "waiting for 3 seconds .. /n");    sleep(3);    fprintf(stdout, "closing all doors/n");    handleDoor(0, DoorClose);    fprintf(stdout, "asking /"where is cabin #1?/"/n");    whereIs(1);    {        EventDesc ed;        fprintf(stdout, "output: type=%d/n", (int) waitForEvent(&ed));    }    fprintf(stdout, "waiting for 3 seconds .. /n");    sleep(3);    fprintf(stdout, "starting threads .../n");    fflush(stdout);    if (pthread_mutex_init(&mutex, NULL) < 0) {        perror("pthread_mutex_init");        exit(1);    }    if (pthread_create(&ctlThr, NULL, ctlProc, (void *) 0) != 0) {        perror("pthread_create");        exit(-1);    }    if (pthread_create(&evThr, NULL, evProc, (void *) 0) != 0) {        perror("pthread_create");        exit(-1);    }    (void) pthread_join(ctlThr, NULL);    (void) pthread_join(evThr, NULL);    return 0;}
开发者ID:kalleand,项目名称:elevator,代码行数:60,


示例12: main

int main(void){    // instantiate window    GWindow window = newGWindow(320, 240);        GCheckBox checkBox = newGCheckBox("I agree");    setActionCommand(checkBox, "check");    addToRegion(window, checkBox, "SOUTH");        while (true)    {        GActionEvent event = waitForEvent(ACTION_EVENT);                if (getEventType(event) == WINDOW_CLOSED)        {            break;        }                if (strcmp(getActionCommand(event), "check") == 0)        {            if (isSelected(checkBox))            {                printf("Checkbox was checked/n");            }            else            {                printf("Checkbox was unchecked/n");            }        }    }        closeGWindow(window);    return 0;}
开发者ID:mottosso,项目名称:cs50x,代码行数:34,


示例13: read

void read(int fd, void* bufferPtr, const size_t size, int timeoutMS){    chr::high_resolution_clock::time_point deadline = chr::high_resolution_clock::now() +            chr::milliseconds(timeoutMS);    size_t nTotal = 0;    for (;;) {        int n  = ::read(fd,                        reinterpret_cast<char*>(bufferPtr) + nTotal,                        size - nTotal);        if (n >= 0) {            nTotal += n;            if (nTotal == size) {                // All data is read, break loop                break;            }            if (n == 0) {                THROW_EXCEPTION(UtilsException, "Peer disconnected");            }        } else if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR) {            // Neglected errors            LOGD("Retrying read");        } else {            THROW_EXCEPTION(UtilsException, "Error during read()", errno);        }        waitForEvent(fd, POLLIN, deadline);    }}
开发者ID:janekolszak,项目名称:cargo,代码行数:29,


示例14: switch

void CoreEngine::timerEvent(QTimerEvent* te){    // Fetch away the debug events and notify if debuggee    // stops. Note that IDebugEventCallback does not    // cover all cases of a debuggee stopping execution    // (such as step over,etc).    if (te->timerId() != m_watchTimer)        return;    switch (waitForEvent(1)) {        case S_OK:            killWatchTimer();            emit watchTimerDebugEvent();            break;        case S_FALSE:            // Detect startup (all modules loaded) if the module            // count no longer changes in a time-out.            if (!m_modulesLoadedEmitted) {                const int newModuleCount = moduleCount();                if (newModuleCount && newModuleCount == m_lastTimerModuleCount) {                    m_modulesLoadedEmitted = true;                    emit modulesLoaded();                } else {                    m_lastTimerModuleCount = newModuleCount;                }            }            break;        case E_PENDING:        case E_FAIL:            break;        case E_UNEXPECTED: // Occurs on ExitProcess.            killWatchTimer();            break;    }}
开发者ID:gidlbn,项目名称:dlbn_02,代码行数:34,


示例15: main

/* * Main program. */int main() {    if (RANDOM_USE_SEED) {        setRandomSeed(106);    }        intro();    // create GUI window and position the console to its right    setConsoleLocation(WorldGrid::WINDOW_WIDTH + 6 * WorldAbstract::WINDOW_MARGIN, 20);   // temporary    // setConsoleSize(CONSOLE_WIDTH, CONSOLE_HEIGHT);    setConsoleEventOnClose(true);        TrailblazerGUI gui(WINDOW_TITLE);    gui.snapConsoleLocation();    // main event loop to process events as they happen    while (true) {        GEvent e = waitForEvent(ACTION_EVENT | MOUSE_EVENT | WINDOW_EVENT);        if (e.getEventType() == MOUSE_CLICKED || e.getEventType() == MOUSE_MOVED) {            gui.processMouseEvent(GMouseEvent(e));        } else if (e.getEventClass() == ACTION_EVENT) {            gui.processActionEvent(GActionEvent(e));        } else if (e.getEventClass() == WINDOW_EVENT) {            gui.processWindowEvent(GWindowEvent(e));        }    }    return 0;}
开发者ID:cathyliu0308,项目名称:cs106b,代码行数:31,


示例16: main

int main(void){    GWindow window = newGWindow(320, 240);    GButton button = newGButton("button");    setActionCommand( button, "check" );    addToRegion(window, button, "SOUTH");        while( true )    {        GActionEvent event = waitForEvent( ACTION_EVENT );                if( getEventType(event) == WINDOW_CLOSED )        {            break;        }        else if( strcmp( getActionCommand(event) , "click") == 0 )        {            printf("button was clicked/n");        }    }        closeGWindow(window);    return 0;}
开发者ID:bogdanpetru,项目名称:cs50,代码行数:25,


示例17: resize

    void    resize(int w, int h) {        if (w == width && h == height) {            return;        }        glXWaitGL();        // We need to ensure that pending events are processed here, and XSync        // with discard = True guarantees that, but it appears the limited        // event processing we do so far is sufficient        //XSync(display, True);        Drawable::resize(w, h);        // Tell the window manager to respect the requested size        XSizeHints size_hints;        size_hints.max_width  = size_hints.min_width  = w;        size_hints.max_height = size_hints.min_height = h;        size_hints.flags = PMinSize | PMaxSize;        XSetWMNormalHints(display, window, &size_hints);        XResizeWindow(display, window, w, h);        waitForEvent(ConfigureNotify);        glXWaitX();    }
开发者ID:SunnyBeike,项目名称:apitrace,代码行数:28,


示例18: closeConnections

	// closes all connections	inline int closeConnections() {		for (int i=0; i<threadCounter; i++) {			while (!cqPollerThreadEnded[i])			 	usleep(1000);		}		waitSendThread();		for (unsigned int i=0; i<connections.size(); i++)			rdma_disconnect(connections[i]->id);		for (unsigned int i=0; i<connections.size(); i++)			waitForEvent(connections[i]->id, RDMA_CM_EVENT_DISCONNECTED, connections[i]->getContext());		for(unsigned i=0;i<connections.size();++i) {			connections[i]->destroyConnection();			delete connections[i];			connections[i]=NULL;		}		for (int i=0; i<threadCounter; i++)			free(contexts[i]);		return 0;	}
开发者ID:eXistence,项目名称:fastflow,代码行数:27,


示例19: allocKeepaliveEvent

bool EventValidator::waitForKeepaliveEvent(SIPX_KEEPALIVE_EVENT event,                                           SIPX_KEEPALIVE_CAUSE cause,                                           SIPX_KEEPALIVE_TYPE type,                                           const char* szRemoteAddress,                                           int remotePort,                                           int keepAliveSecs,                                           bool bStrictOrderMatch /*= true*/,                                           int iTimeoutInSecs /* = DEFAULT_TIMEOUT*/){   bool bFound = true;   if (!isIgnoredCateogry(EVENT_CATEGORY_KEEPALIVE))   {      UtlString* pString = allocKeepaliveEvent(event,         cause,         type,         szRemoteAddress,         remotePort,         keepAliveSecs);      bFound = waitForEvent(pString->data(), bStrictOrderMatch, iTimeoutInSecs);      delete pString;   }   if (!bFound)   {      OsTask::delay(1000);      report();   }   return bFound;}
开发者ID:Jaroslav23,项目名称:sipxtapi,代码行数:35,


示例20: DBG

void SIPRegistrarClient::run() {  DBG("SIPRegistrarClient starting.../n");  AmDynInvokeFactory* uac_auth_f = AmPlugIn::instance()->getFactory4Di("uac_auth");  if (uac_auth_f == NULL) {    DBG("unable to get a uac_auth factory. registrations will not be authenticated./n");    DBG("(do you want to load uac_auth module?)/n");  } else {    uac_auth_i = uac_auth_f->getInstance();  }  while (!stop_requested.get()) {    if (registrations.size()) {      unsigned int cnt = 250;      while (cnt > 0) {	usleep(2000); // every 2 ms	processEvents();	cnt--;      }      checkTimeouts();    } else {      waitForEvent();      processEvents();    }  }}
开发者ID:BackupTheBerlios,项目名称:sems-svn,代码行数:25,


示例21: allocInfoStatusEvent

bool EventValidator::waitForInfoStatusEvent(void* pCookie,                                             int status,                                             int responseCode,                                             const char* szResponseText,                                            bool bStrictOrderMatch,                                             int iTimeoutInSecs) {   bool bFound = true;   if (!isIgnoredCateogry(EVENT_CATEGORY_INFO_STATUS))   {      UtlString* pString = allocInfoStatusEvent(pCookie,          status,          responseCode,          szResponseText);      bFound = waitForEvent(pString->data(), bStrictOrderMatch, iTimeoutInSecs);      delete pString;   }   if (!bFound)   {      // Wait a second for any additional events to pour in -- useful for       // debugging.      OsTask::delay(1000);      report();   }   return bFound;}
开发者ID:Jaroslav23,项目名称:sipxtapi,代码行数:33,


示例22: main

int main(void){    // instantiate window    GWindow window = newGWindow(320, 240);    // instantiate slider    addToRegion(window, newGLabel("0"), "SOUTH");    GSlider slider = newGSlider(0, 100, 50);    setActionCommand(slider, "slide");    addToRegion(window, slider, "SOUTH");    addToRegion(window, newGLabel("100"), "SOUTH");    // listen for events    while (true)    {        // wait for event        GActionEvent event = waitForEvent(ACTION_EVENT);        // if window was closed        if (getEventType(event) == WINDOW_CLOSED)        {            break;        }        // if action command is "slide"        if (strcmp(getActionCommand(event), "slide") == 0)        {            printf("slider was slid to %i/n", getValue(slider));        }    }    // that's all folks    closeGWindow(window);    return 0;}
开发者ID:Braveheart22,项目名称:CS50,代码行数:35,


示例23: allocMediaEvent

bool EventValidator::waitForMediaEvent(SIPX_MEDIA_EVENT event,                                       SIPX_MEDIA_CAUSE cause,                                       SIPX_MEDIA_TYPE  type,                                       bool bStrictOrderMatch,                                        int iTimeoutInSecs) {   bool bFound = true;#ifndef HAS_MEDIA_ACTIVE_EVENT   if (event == MEDIA_REMOTE_ACTIVE)      return true;#endif   if (!isIgnoredCateogry(EVENT_CATEGORY_MEDIA))   {      UtlString* pString = allocMediaEvent(event, cause, type);      bFound = waitForEvent(pString->data(), bStrictOrderMatch, iTimeoutInSecs);      delete pString;   }   if (!bFound)   {      // Wait a second for any additional events to pour in -- useful for       // debugging.      OsTask::delay(1000);      report();   }   return bFound;}
开发者ID:Jaroslav23,项目名称:sipxtapi,代码行数:32,


示例24: waitForEvent

bool EventThread::threadLoop() {    DisplayEventReceiver::Event event;    Vector< sp<EventThread::Connection> > signalConnections;    signalConnections = waitForEvent(&event);    // dispatch events to listeners...    const size_t count = signalConnections.size();    for (size_t i=0 ; i<count ; i++) {        const sp<Connection>& conn(signalConnections[i]);        // now see if we still need to report this event        status_t err = conn->postEvent(event);        if (err == -EAGAIN || err == -EWOULDBLOCK) {            // The destination doesn't accept events anymore, it's probably            // full. For now, we just drop the events on the floor.            // FIXME: Note that some events cannot be dropped and would have            // to be re-sent later.            // Right-now we don't have the ability to do this.            ALOGW("EventThread: dropping event (%08x) for connection %p",                    event.header.type, conn.get());        } else if (err < 0) {            // handle any other error on the pipe as fatal. the only            // reasonable thing to do is to clean-up this connection.            // The most common error we'll get here is -EPIPE.            removeDisplayEventConnection(signalConnections[i]);        }    }    return true;}
开发者ID:aurorarom,项目名称:JsonUtil,代码行数:28,


示例25: DBG

void AmCallWatcher::run() {  DBG("starting call watcher./n");  garbage_collector->start();  while (true) {    waitForEvent();    processEvents();  }}
开发者ID:sems-server,项目名称:sems,代码行数:8,


示例26: waitForEvent

void WaitForEventTest::testSetActive() {    WaitForEvent waitForEvent(this, QEvent::ChildAdded);    waitForEvent.d->mConditionMet = true;    waitForEvent.setActive(true);    QVERIFY(waitForEvent.isActive());    QVERIFY(!waitForEvent.conditionMet());}
开发者ID:KDE,项目名称:ktutorial,代码行数:9,


示例27: show

    void show(void) {        if (!visible) {            XMapWindow(display, window);            waitForEvent(window, Expose);            Drawable::show();        }    }
开发者ID:pzick,项目名称:apitrace,代码行数:9,


示例28: showWindow

voidshowWindow(Window window){    // FIXME: This works for DRI drivers, but not NVIDIA proprietary drivers,    // for which the only solution seems to be to use Pbuffers.    if (true || !ws::headless) {        XMapWindow(display, window);        waitForEvent(window, MapNotify);    }}
开发者ID:c14006078,项目名称:apitrace,代码行数:10,



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


C++ waitForThread函数代码示例
C++ wait4函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。