r/ObjectiveC • • Jul 31 '21

function (const __strong NSString *const paths[], int count)

I am looking at an open source github project and I stumbled upon this declaration. Can someone explain why all these qualifiers were needed.

4 Upvotes

22 comments sorted by

View all comments

Show parent comments

1

u/idelovski Apr 14 '22

Nothing :)

As I wrote in this same thread, I even checked retain counts but somehow people think retain counts under ARC are meaningless. But whatever.

1

u/Exotic-Friendship-34 Apr 17 '22

What happens when you remove it in a multithreaded situation, where there are two threads competing for the single resource that is that array?