From: Dan A. <da...@gm...> - 2004-02-07 08:46:11
|
On Fri, Feb 06, 2004 at 10:18:41PM -0800, Ballard, Jonathan wrote: > Hello, > > A few suggestions that help portability: That code is going away in the next release :) > int co_os_poll_chain_wait(co_os_poll_chain_t chain) > { > //-- HANDLE wevents[chain->count]; > ++ HANDLE *wevents ; > DWORD result; > co_os_poll_t poll; > int i; > > ++ wevents = co_os_malloc( sizeof(HANDLE) * chain->count ) ; > > i=0; > co_list_each_entry(poll, &chain->list, node) { > wevents[i] = poll->event; > i++; > } > > result = MsgWaitForMultipleObjects(chain->count, (void * const > *)&wevents, > FALSE, INFINITE, QS_ALLINPUT); > > ++ co_os_free( wevents ) ; > > if (result == WAIT_OBJECT_0 + chain->count) > return 0; > . > > . > > . > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > coLinux-devel mailing list > coL...@li... > https://lists.sourceforge.net/lists/listinfo/colinux-devel -- Dan Aloni da...@gm... |