[SR-14110] Allowing generics on @convention(c) functions #56496
Labels
attributes
Feature: Declaration and type attributes
c interop
Feature: Interoperability with C
compiler
The Swift compiler in itself
@convention
Feature → attributes: the @convention attribute
feature
A feature request or implementation
will not do
Resolution: Will not be worked on
Additional Detail from JIRA
md5: 2adde8221da0f95bd9b4e43d48094398
Issue Description:
I have code that could use some threading to speed things up. None of existing primitives on osx seems sufficient for my task, except for POSIX threads, because this mechanism provides a fork-join model. To my great disappointment and surprise, I cannot pass anything polymorphic into a
@convention(c)
function. Could this be improved, please? I kinda need it asap, thanks.This roughly how my original code looks like.
The error is:
The text was updated successfully, but these errors were encountered: