Create some infrastructure for building up @-vectors. Work on #2921.
This commit is contained in:
@@ -133,6 +133,14 @@ unsupervise() {
|
||||
task->unsupervise();
|
||||
}
|
||||
|
||||
extern "C" CDECL void
|
||||
vec_reserve_shared_actual(type_desc* ty, rust_vec_box** vp,
|
||||
size_t n_elts) {
|
||||
rust_task *task = rust_get_current_task();
|
||||
reserve_vec_exact_shared(task, vp, n_elts * ty->size);
|
||||
}
|
||||
|
||||
// This is completely misnamed.
|
||||
extern "C" CDECL void
|
||||
vec_reserve_shared(type_desc* ty, rust_vec_box** vp,
|
||||
size_t n_elts) {
|
||||
|
||||
Reference in New Issue
Block a user