We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3f0bc5 commit 4a39a34Copy full SHA for 4a39a34
ompi/request/grequestx.c
@@ -47,6 +47,7 @@ static int grequestx_progress(void) {
47
OPAL_THREAD_LOCK(&lock);
48
if (REQUEST_COMPLETE(&request->greq_base)) {
49
opal_list_remove_item(&requests, &request->greq_base.super.super);
50
+ OBJ_RELEASE(request);
51
completed++;
52
}
53
@@ -73,6 +74,11 @@ int ompi_grequestx_start(
73
74
75
((ompi_grequest_t *)*request)->greq_poll.c_poll = gpoll_fn;
76
77
+ /* prevent the request from being destroyed upon completion,
78
+ * we first have to remove it from the list of active requests
79
+ */
80
+ OBJ_RETAIN(((ompi_grequest_t *)*request));
81
+
82
if (!requests_initialized) {
83
OBJ_CONSTRUCT(&requests, opal_list_t);
84
OBJ_CONSTRUCT(&lock, opal_mutex_t);
0 commit comments