From 50749c462b55b05d42ca518572f75101401089d5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 19 Jun 2021 08:36:17 +0200 Subject: make libfakebank scale --- src/include/taler_fakebank_lib.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_fakebank_lib.h b/src/include/taler_fakebank_lib.h index 828282c8b..60283e7f4 100644 --- a/src/include/taler_fakebank_lib.h +++ b/src/include/taler_fakebank_lib.h @@ -64,6 +64,7 @@ TALER_FAKEBANK_start (uint16_t port, * * @param port port to listen to * @param currency which currency should the bank offer + * @param ram_limit how much memory do we use at most * @param num_threads size of the thread pool, 0 to use the GNUnet scheduler * @param close_connections true to force closing a connection after each request (no HTTP keep-alive) * @return NULL on error @@ -71,6 +72,7 @@ TALER_FAKEBANK_start (uint16_t port, struct TALER_FAKEBANK_Handle * TALER_FAKEBANK_start2 (uint16_t port, const char *currency, + uint64_t ram_limit, unsigned int num_threads, bool close_connections); @@ -81,6 +83,9 @@ TALER_FAKEBANK_start2 (uint16_t port, * or #TALER_FAKEBANK_check_credit()). * If any transactions are onrecord, return #GNUNET_SYSERR. * + * Note that this function only works in + * single-threaded mode while nothing else is happening. + * * @param h bank instance * @return #GNUNET_OK on success */ @@ -139,6 +144,9 @@ TALER_FAKEBANK_make_admin_transfer ( * to the transfer identifier and remove the transaction from the * list. If the transaction was not recorded, return #GNUNET_SYSERR. * + * Note that this function only works in + * single-threaded mode while nothing else is happening. + * * @param h bank instance * @param want_amount transfer amount desired * @param want_debit account that should have been debited @@ -162,6 +170,9 @@ TALER_FAKEBANK_check_debit (struct TALER_FAKEBANK_Handle *h, * @a want_credit account with the @a subject. If so, remove the transaction * from the list. If the transaction was not recorded, return #GNUNET_SYSERR. * + * Note that this function only works in + * single-threaded mode while nothing else is happening. + * * @param h bank instance * @param want_amount transfer amount desired * @param want_debit account that should have been debited -- cgit v1.2.3