diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-08 13:16:06 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-08 13:16:06 +0200 |
commit | a4257108013f15653724b5ed3b3c208e071567c5 (patch) | |
tree | 456d43971be209e777fce616ac149d0032c90452 /src/Daemon/Daemon.cpp | |
parent | 5d2fb8bf5ebdf814259a01c6e429311334d2eabc (diff) | |
download | abrt-a4257108013f15653724b5ed3b3c208e071567c5.tar.gz abrt-a4257108013f15653724b5ed3b3c208e071567c5.tar.xz abrt-a4257108013f15653724b5ed3b3c208e071567c5.zip |
abrtd: eliminate g_pending_jobs[] map and all corresponding TODOs :)
-6k:
text data bss dec hexfilename
194741 2656 2384 199781 30c65abrt.t1/abrt-0.0.8.5/src/Daemon/.libs/abrtd
188316 2648 2320 193284 2f304abrt.t2/abrt-0.0.8.5/src/Daemon/.libs/abrtd
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/Daemon.cpp')
-rw-r--r-- | src/Daemon/Daemon.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index 149b2bda..f680471f 100644 --- a/src/Daemon/Daemon.cpp +++ b/src/Daemon/Daemon.cpp @@ -53,7 +53,7 @@ * v[N]["executable"/"uid"/"kernel"/"backtrace"][N] = "contents" * - CreateReport(UUID): starts creating a report for /var/cache/abrt/DIR with this UUID * Returns job id (uint64) - * - GetJobResult(job_id): returns map_crash_report_t (map_vector_string_t) + * - GetJobResult(UUID): returns map_crash_report_t (map_vector_string_t) * - Report(map_crash_report_t (map_vector_string_t)): * "Please report this crash": calls Report() of all registered reporter plugins * Returns report_status_t (map_vector_string_t) - the status of each call @@ -98,12 +98,7 @@ static GMainLoop* g_pMainloop; int g_verbose; CCommLayerServer* g_pCommLayer; -/* - * Map to cache the results from CreateReport_t - * <UID, <job_id, result>> - */ -std::map<const std::string, std::map<uint64_t, map_crash_report_t> > g_pending_jobs; -/* mutex to protect g_pending_jobs */ + pthread_mutex_t g_pJobsMutex; |