Skip to content

Commit

Permalink
declare ruby_thread_has_gvl_p
Browse files Browse the repository at this point in the history
This can be found https://github.com/ruby/ruby/blob/5d358b660d41e64de301f428dc0300a52a6f9566/internal/thread.h#L77

All users of this method seem to just declare the method up front, as access to ruby's internal headers are discouraged

Signed-off-by: Keenan Brock <[email protected]>
  • Loading branch information
kbrock committed Sep 11, 2024
1 parent fee2a09 commit c499c7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/ext/ovirtsdk4c/ov_http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ limitations under the License.
#include "ov_http_response.h"
#include "ov_http_transfer.h"

/* thread.c (export) */
extern int ruby_thread_has_gvl_p(void);

/* Class: */
VALUE ov_http_client_class;

Expand Down

0 comments on commit c499c7e

Please sign in to comment.