[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#88486: libapt-pkg: Accessor methods for OpProgress, threadsafety



Package: apt
Version: 0.5.0
Severity: wishlist

Hi,

I'm currently building a multithreaded application on top of libapt-pkg,
which is supposed to run a few operations in the background. For this, I'm
using a subclass of OpProgress which does not make any output or assume
validity of the standard streams and can be queried about the current values.

In some cases, I'd like to use OpTextProgress as a replacement for this class,
however if I give an OpProgress object to my class, I can no longer access my
accessor methods (of course :-) ). Would it be possible to have accessor
methods in OpProgress, possibly even with pthreads style locking around methods
which get/set multiple values (to avoid display oddities)?

I haven't provided a patch since I know you have a different method naming
convention (I use the Java style), so I didn't know how to name the methods.

   Simon

-- System Information
Debian Release: 2.2
Architecture: m68k
Kernel: Linux lasagna.hogyros 2.0.36 #2 Sat Feb 6 22:57:25 CET 1999 m68k

Versions of packages apt depends on:
ii  libc6                      2.1.3-13      GNU C Library: Shared libraries an
ii  libstdc++2.10-glibc2.1     1:2.95.2-13.1 The GNU stdc++ library            




Reply to: