Skip to content

Commit

Permalink
Plugin most reserve again on re-activation
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 authored and abique committed Nov 1, 2024
1 parent a5c7b2c commit 70c2e33
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/clap/ext/draft/scratch-memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ typedef struct clap_host_scratch_memory {
// returns false then no scratch memory will be provided,
// regardless of any previous calls to `reserve()`.
//
// Note that any memory the host allocates to satisfy
// the requested scratch size can be de-allocated by the
// host when the plugin is de-activated.
// When the plugin is de-activated, the scratch memory
// is invalidated, and the host may free the memory if
// appropriate. The plugin will need to reserve scratch
// memory again the next time it is activated.
//
// In the context of plugins and hosts that implement
// the "thread-pool" extension, scratch memory is assumed
Expand Down

0 comments on commit 70c2e33

Please sign in to comment.