Re: [swift-corelibs-dev] Issue understanding libdispatch runloop poking

2017-10-24 Thread Rogiel Sulzbach via swift-corelibs-dev
I submitted the first pull request. It is still a pretty large patch but most of it is defined(FreeBSD) conditionals in the right places. https://github.com/apple/swift-corelibs-libdispatch/pull/319 kevent is very (very, very, very!) ugly right now and 99% sure broken on Darwin. FreeBSD and Dar

Re: [swift-corelibs-dev] Issue understanding libdispatch runloop poking

2017-10-16 Thread Pierre Habouzit via swift-corelibs-dev
> On Oct 16, 2017, at 8:03 AM, Rogiel Sulzbach via swift-corelibs-dev > wrote: > > Thank you for all the help. I will try to take a look at this during the week. > > I am not even running it in swift yet, I just got it to compile (without > actually working) so that I could get Foundation to b

Re: [swift-corelibs-dev] Issue understanding libdispatch runloop poking

2017-10-16 Thread Rogiel Sulzbach via swift-corelibs-dev
Thank you for all the help. I will try to take a look at this during the week. I am not even running it in swift yet, I just got it to compile (without actually working) so that I could get Foundation to build without having to disable the entire URL system, but I would like to use dispatch. Th

Re: [swift-corelibs-dev] Issue understanding libdispatch runloop poking

2017-10-12 Thread Pierre Habouzit via swift-corelibs-dev
oh and last, while working on FreeBSD, we are killing support for pthread_workqueue_additem_np, pthread_workqueue_setdispatch_np and similar functions that are ancient and do not support all the required prioirties. in your port, please do not try to repair this support if it is broken, because

Re: [swift-corelibs-dev] Issue understanding libdispatch runloop poking

2017-10-12 Thread Pierre Habouzit via swift-corelibs-dev
> On Oct 12, 2017, at 4:52 PM, Pierre Habouzit via swift-corelibs-dev > wrote: > >> On Oct 12, 2017, at 7:48 AM, Rogiel Sulzbach > > wrote: >> >> I am trying to get libdispatch working on FreeBSD but I am hitting a wall: I >> cannot get my head around how the runloop

Re: [swift-corelibs-dev] Issue understanding libdispatch runloop poking

2017-10-12 Thread Pierre Habouzit via swift-corelibs-dev
> On Oct 12, 2017, at 7:48 AM, Rogiel Sulzbach wrote: > > I am trying to get libdispatch working on FreeBSD but I am hitting a wall: I > cannot get my head around how the runloop implementation dispatches a event > to the kqueue once a new job is submitted. So far I was able to get the > libra

[swift-corelibs-dev] Issue understanding libdispatch runloop poking

2017-10-12 Thread Rogiel Sulzbach via swift-corelibs-dev
I am trying to get libdispatch working on FreeBSD but I am hitting a wall: I cannot get my head around how the runloop implementation dispatches a event to the kqueue once a new job is submitted. So far I was able to get the library to fully compile but most tests are timing out due to a issue g