You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pipeless/src/stages/hook.rs
+37-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
-
use std::{sync::Arc, fmt};
1
+
use std::{collections::HashMap, fmt, sync::Arc};
2
2
use log::error;
3
-
use tokio::sync::Mutex;
3
+
use tokio::sync::{Mutex,RwLock};
4
+
use uuid::Uuid;
4
5
5
6
usecrateas pipeless;
6
7
@@ -46,6 +47,9 @@ impl StatelessHook {
46
47
pubstructStatefulHook{
47
48
h_type:HookType,
48
49
h_body:Arc<Mutex<dynHookTrait>>,
50
+
// Stateful hooks would not necesarily require to process sequentially, however, in almost all cases preserving a state in CV are related to sorted processing, such as tracking.
51
+
// Maps the stream uuid to the last frame processed for the stream. Used for stateful sequential sorted processing.
0 commit comments