diff options
author | Antony Kellermann | 2018-05-13 14:30:17 -0400 |
---|---|---|
committer | Antony Kellermann | 2018-05-13 14:30:17 -0400 |
commit | 6d8ce134613367a36c36a40e55043b817703fc6d (patch) | |
tree | 4cea9cb115891d17925fc4d44918da5104e9e041 /portfolio.h | |
parent | 6c833af5fce3be8ed1d572df68d018449fde3786 (diff) | |
download | aur-6d8ce134613367a36c36a40e55043b817703fc6d.tar.gz |
Implemented multithreading for check for O(1) compute time
Diffstat (limited to 'portfolio.h')
-rw-r--r-- | portfolio.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/portfolio.h b/portfolio.h index b0bc83a5d642..2836e4f11592 100644 --- a/portfolio.h +++ b/portfolio.h @@ -3,6 +3,7 @@ #include <math.h> #include <sys/stat.h> +#include <pthread.h> #include "api.h" #include "rc4.h" @@ -93,9 +94,10 @@ SDA* portfolio_get_data_array(void); /** * Initializes the rest of the fields in an SD struct using API data after symbol, amount, and total_spent have already * been stored - * @param sec_data pointer to SD struct + * @param vsec_data pointer to an SD struct. Must be void* for threading. + * @return returns NULL. Must return NULL for threading. */ -void portfolio_store_api_data(SD* sec_data); +void* portfolio_store_api_data(void* vsec_data); /** * Sorts the SDA array based on the SORT mode. |