Alfredo Cardigliano
9352d0cdcd
Update copyright
2025-01-02 09:09:56 +01:00
Luca Deri
ab4e49939e
Reworked periodic activities
2024-02-17 13:23:20 +01:00
Luca Deri
55870e97b9
(C) Update
2024-01-12 11:44:18 +01:00
lucaderi
d395deac4e
Automated commit of clang-format CI changes.
2023-04-07 14:20:44 +00:00
Luca Deri
78a757b84e
Updated (C)
2023-02-19 19:16:07 +01:00
Alfredo Cardigliano
f2060f2488
Copyright update (C)
2022-01-03 09:35:09 +01:00
MatteoBiscosi
e92135e776
Reorganized periodic scripts
2021-12-28 15:41:28 +01:00
Luca Deri
a1178a0791
Updated (C)
2021-01-02 12:08:23 +01:00
Simone Mainardi
55993e8d9b
Makes threads for periodic activities load-adaptive
...
Addresses #4736
2020-11-17 11:59:34 +01:00
Luca Deri
6b043396ad
Added support for thread addinity
2020-07-24 09:55:15 +02:00
emanuele-f
53c032f9f6
Add expected start/end time columns
2020-02-21 13:35:17 +01:00
Simone Mainardi
583c34ea02
Fixes race conditions in ThreadPool enqueue/dequeue
2020-02-17 17:49:58 +01:00
Luca Deri
57e6a93065
Improved scheduling algorithm to guarantee minimum service time when number of entries allow
...
Updated (C)
2020-01-06 23:36:36 +01:00
Simone Mainardi
9cb566ed41
Computes lua scripts deadlines in C to prevent missing scheduled activities
2019-11-19 13:02:13 +01:00
Luca Deri
84bf948f0f
Reworked thread handling policy
2019-11-01 12:15:08 +01:00
Luca Deri
aee1b3defb
Split threaded activities in high and standard priority tasks
2019-11-01 11:03:56 +01:00
Luca Deri
bedff2c8e2
Updated (C)
2019-01-07 19:28:49 +01:00
Simone Mainardi
9f3f56999c
Reworks shutdown to allow graceful periodic activ term
2018-06-01 12:38:31 +02:00
Simone Mainardi
3283d521b2
Fixes memory leaks in ThreadPool
...
==25013== 56 bytes in 4 blocks are definitely lost in loss record 164 of 320
==25013== at 0x4C29BE3: malloc (vg_replace_malloc.c:299)
==25013== by 0x4CAC5D: ThreadPool::ThreadPool(unsigned char) (ThreadPool.cpp:49)
==25013== by 0x4A7AF5: ThreadedActivity::ThreadedActivity(char const*, unsigned int, bool, unsigned char) (ThreadedActivity.cpp:52)
==25013== by 0x4CAAA8: PeriodicActivities::startPeriodicActivitiesLoop() (PeriodicActivities.cpp:108)
==25013== by 0x4B5D30: Ntop::start() (Ntop.cpp:439)
==25013== by 0x44407E: main (main.cpp:405)
2018-04-16 16:50:52 +02:00
Luca Deri
f0c936c368
Updated (C) to 2018
2018-03-22 21:59:42 +01:00
Luca
e1749daa23
Reworked callback scripts to make them concurrent and thus tackle issues related to slow execution on machines with many interfaces
2017-11-23 19:03:46 +01:00
emanuele-f
e1132d2d5a
Fix invalid implementation of condition variables
...
The following issues are addressed:
- Shared state queue_len was not protected by a lock. This could cause thread to block indefinitely.
- Condition variable signal was performed without holding a lock. Again it can cause the thread to block indefinitely.
See https://stackoverflow.com/questions/4544234/calling-pthread-cond-signal-without-locking-mutex
2017-11-20 13:08:27 +01:00
Luca Deri
7f8bddcff1
Implemented thread pool to be used for splitting callback scripts
2017-10-18 22:32:00 +02:00
Luca Deri
52b1375353
Implemented thread pool to be used for splitting callback scripts
2017-10-18 22:31:37 +02:00