libtcspc.NewDeleteBucketSource¶
- class libtcspc.NewDeleteBucketSource(object_type)[source]¶
Bases:
BucketSourceBucket source that allocates fresh storage for each bucket using
new[]/delete[].Storage from destroyed buckets is not reused. Suitable for simple workloads where allocation cost is not a concern.
- Parameters:
object_type (EventType) – Element type of the buckets produced by this source.
Notes
Thread-safe.
See also
- tcspc::new_delete_bucket_source
The underlying C++ bucket source.
- RecyclingBucketSource
Bucket source that reuses storage.