Skip to content
Tcl Source Code Artifact [ab8dfa8eec]
Login

Artifact [ab8dfa8eec]

Artifact ab8dfa8eec878f3c92da28de1f690f92f89e6916a1906c7143070738ccb387e1:

Ticket change [ab8dfa8eec] - Ticket [815e2468064b4324|815e246806] <i>tcl crash on channel thread transfer and fileevent writable in place</i> status still Pending with 3 other changes by sebres on 2018-06-11 11:42:08.
D 2018-06-11T11:42:08.568
J icomment Branch\sfix-815e246806-8-6\sis\sready\snow\sfor\stesting/review.\r\n\r\nThis\sfix\scould\stheoretacally\swork\swithout\sthe\snew\shandling\sround\sabount\schannel\sref-count\s(also\snon\satomic),\sbut...\sI'm\snot\ssure\sit\sworks\sthen\sin\sall\spossible\sconstellations.\sIn\saddition\sI\swould\slike\sto\ssave\sthis\scode\sto\sbe\spretty\ssure\sif\ssomeone\scalls\sthis\spublic\sAPI\sacross\stwo\sthreads\sa\sbit\sother\sway\s(as\sin\sthread-module).\r\n\r\nAnd\sjust\sto\shave\satomic\soperations\sin\stcl\sfor\sfuture\srequirements\s(I've\sused\sit\salready\sfor\swindows\ssince\sI\sfixed\spipes-error\s[8bd13f07bd],\ssee\s[ad65e576ee]).\r\n\r\nJust\sthis\shandling\s(atomic\sprimitives\sin\stclInt.h)\sis\snot\scomplete\spossibly\sand\smay\sbe\smissing\sfor\ssome\solder\sgcc/clang\sversions\sresp.\ssome\sspecial\splatforms,\sthat\sare\sdon't\shave\ssupport\sfor\sbuiltin\satomic\s(or\sjust\smiss\ssome\sheader\sinclude).<br/>\r\nIf\sso,\swe\sshould\sextend\sthis\son\sdemand\s(similar\sway\sother\sprojects\sdoing\sthis,\se.\sg.\swe've\sthis\sin\snginx,\ssee\s<a\shref="https://github.com/sebres/nginx/blob/hg-mirror/src/os/unix/ngx_atomic.h">ngx_atomic_fetch_add\sin\sngx_atomic.h</a>\sfor\sexample.<br/>\r\nOr\sjust\sto\sextend\sit\swith\snon-atomic\svariants\sof\sTclAtomicFetch...\sif\stotally\sunsupported.\r\n\r\nATM\stested\sMS-VC\s(>=\s6.0),\smingw\s(gcc\s>=\s4.2),\slinux\s(gcc\s>=\s6.2,\sclang\s>=\s3.8).
J login sebres
J mimetype text/x-fossil-wiki
K 815e2468064b4324bc4b303b9bafd3ef92803c32
U sebres
Z 31ef45297fa600e47887be842dbc2073