CFanatic

Go Back   CFanatic > Programming > C++ Programming

Join CFanatic Forum Now

WaitFor function topic posted under C++ Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 11-11-2006, 10:11 AM
Junior Member
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Angus is on a distinguished road
| More
WaitFor function

Hello

I am writing a program in C++ which calls asynchronous functions. The detail is that it is winsock programming and frequently a function is called which completes asynchronously. I get a requestid for each function. I then need to wait for the message with x requestid. So I want a WaitFor function - where I can pass in the requestid.

So basically: bool WaitFor(int Requestid);

When WaitFor returns I know that I have the data I need. I don't want a busy loop.

How would I implement such a function for win32?

Angus
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HideCaret() Windows API function doesn't work properly cygnusX C# Programming 1 05-30-2008 02:58 PM
HELP with function free() (stdlib.h) flexo87 C Programming 0 03-02-2008 10:01 AM
Write a value-returning function??????? Albaniankool C++ Programming 0 05-30-2007 08:52 AM
working of memset() function sureshN C Programming 3 05-28-2007 04:42 AM
c# can you force a function to NOT be inlined? codeunlock C# Programming 0 04-29-2007 12:43 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:04 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board