Re: Implementing the non-blocking pipes API

From: John Stickley <john_stickley_at_.....>
Date: Mon Mar 20 2006 - 11:49:48 PST
Per,

I meant to answer this last week. Yes this latest version
of your code worked fine.

Also, just to re-cap on your idea at least week's meeting
of revising the blocking calls to be able to deal with
any buffer size even if it exceeds the currently
supported internal buffer size of the non-blocking API,
it might make sense to have the following call:

int dpi_pipe_c_get_depth(
     void *pipe_handle,       // input: pipe handle
     svBit input_or_output ); // input: 1 for input pipe, 0 for output pipe

This to compliment the call that already exists to set it:

void dpi_pipe_c_set_depth(
     void *pipe_handle,       // input: pipe handle
     svBit input_or_output,   // input: 1 for input pipe, 0 for output pipe
     int depth );             // input: number of elements

This way, even with an implementation specified default,
you have all the information your "smart" blocking
operations would need.

-- johnS


Per Bojsen wrote:
> Hi John,
> 
> 
>>More good news. My data shaping test worked first time
>>- no modifications to your pipes from what I sent earlier.
> 
> 
> Good news indeed!  Did you have a chance to try the new code
> I sent yesterday?
> 
> Per
> 
> 
> 


-- 

This email may contain material that is confidential, privileged
and/or attorney work product for the sole use of the intended
recipient.  Any review, reliance or distribution by others or
forwarding without express permission        /\
is strictly prohibited. If you are     /\   |  \
not the intended recipient please     |  \ /   |
contact the sender and delete        /    \     \
all copies.                      /\_/  K2  \_    \_
______________________________/\/            \     \
John Stickley                   \             \     \
Mgr., Acceleration Methodologies \             \________________
Mentor Graphics - MED             \_
17 E. Cedar Place                   \   john_stickley@mentor.com
Ramsey, NJ  07446                    \     Phone: (201) 818-2585
________________________________________________________________
Received on Mon Mar 20 11:49:53 2006

This archive was generated by hypermail 2.1.8 : Mon Mar 20 2006 - 11:49:59 PST