Correction: You don't need the input_or_output arg in these. That was already specified when the pipe_handle was derived. Here's a corrected version: int dpi_pipe_c_get_depth( void *pipe_handle ) // input: pipe handle void dpi_pipe_c_set_depth( void *pipe_handle, // input: pipe handle int depth ); // input: number of elements John Stickley wrote: > 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 12:05:44 2006
This archive was generated by hypermail 2.1.8 : Mon Mar 20 2006 - 12:05:46 PST