|
|
Sponsor |
Re: Foreign file descriptors: msg#00182freedesktop.xcb
On Wed, Sep 27, 2006 at 02:39:01PM +1000, Russell Shaw wrote: > Hi, Hi Russell! > To monitor external file descriptors for things like receiving > characters on a serial port, xlib doesn't seem to have any facility > for that, so your application remains stuck in XNextEvent(). > > Does xcb have a way around this? No, that's outside XCB's scope. But with both Xlib and XCB, you can get the file descriptor of the X connection and use select(2) or poll(2). This is somewhat non-trivial to get right, though. I've been meaning to work out what the application has to do to get this right, but haven't gotten around to it yet. Of course, what we actually recommend is using threads. That may be a bad idea with Xlib, but XCB is designed to support threads transparently. --Jamey
Xcb mailing list Xcb-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@xxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/xcb
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Foreign file descriptors, Russell Shaw |
|---|---|
| Next by Date: | Re: Foreign file descriptors, Russell Shaw |
| Previous by Thread: | Foreign file descriptors, Russell Shaw |
| Next by Thread: | Re: Foreign file descriptors, Russell Shaw |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|