pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Haberlach <adam@newsnipple.com>
To: Tim Allen <tim@proximity.com.au>
Cc: pgsql-hackers@hub.org
Cc: pgsql-interfaces@hub.org
Subject: Re: C++ client libs
Date: Tue, 3 Oct 2000 20:40:40 -0700
Message-ID: <20001003204040.A4515@ricochet.net> (raw)
In-Reply-To: <Pine.LNX.4.10.10010041206550.21733-100000@bee.proximity.com.au>
References: <200010040051.e940pZG05525@hub.org>
	<Pine.LNX.4.10.10010041206550.21733-100000@bee.proximity.com.au>

On Wed, Oct 04, 2000 at 12:38:35PM +1100, Tim Allen wrote:

> >3) Implement asynchronous calls to the back-end permitting multiple
> >   queries to be executed concurrently
> 
> Implement async calls, yes, definitely a good thing to do. But this by
> itself doesn't buy you multiple queries concurrently; for that you need
> multiple connections to the database, which would also be worth doing in
> this library.
> 
> BTW, for async calls, you would want to create some convenient way of
> registering your interest in the socket connection, and some standard
> methods that read the result from it. Presuming the normal use for this is
> via a select-driven event loop, you want to be able to register the socket
> with whatever code drives the select, and register a callback that looks
> at the socket whenever select goes off. Given that there are umpteen dozen
> implementations of a select-driven event loop, it will be a challenge
> developing something that works nicely with all of them.

	My preference would be an easily-overridable function so I could
subclass the parent object and drop in a function to send a BMessage
to an arbitrary BLooper.  Your messaging system may vary...


-- 
Adam Haberlach            | A billion hours ago, human life appeared on
adam@newsnipple.com       | earth.  A billion minutes ago, Christianity
http://www.newsnipple.com | emerged.  A billion Coca-Colas ago was
'88 EX500                 | yesterday morning. -1996 Coca-Cola Ann. Rpt.



view thread (3+ messages)

Message-ID: <20001003204040.A4515@ricochet.net>
Permalink:  ../20001003204040.A4515@ricochet.net/
Also on:    postgresql.org/message-id/20001003204040.A4515@ricochet.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: adam@newsnipple.com, tim@proximity.com.au, pgsql-hackers@hub.org, pgsql-interfaces@hub.org
  Subject: Re: C++ client libs
  In-Reply-To: <20001003204040.A4515@ricochet.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox