Skip to content

Commit

Permalink
Add demonstration comment
Browse files Browse the repository at this point in the history
  • Loading branch information
BadBastion committed Apr 6, 2024
1 parent b173bad commit 96d6873
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/execution_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,11 @@ impl Deref for ExecEngineInner {
/// to doesn't accidentally outlive its execution engine.
#[derive(Clone)]
pub struct JitFunction<F> {
_execution_engine: ExecEngineInner,
inner: F,
_execution_engine: ExecEngineInner,
// This needs some thread safe way to ensure the Context doesn't get dropped.
// The following doesn't work, and is just for demonstration purposes:
_context: Arc<Context>,
}

impl<F: Copy> JitFunction<F> {
Expand Down

0 comments on commit 96d6873

Please sign in to comment.