"Memfis" wrote:
What is the best practice for using boost::signal? Should the signal be
a public field? Should an accessor method be used?
I hardly know what "best practises" to use.
I submitted something recently for comments. It tries to be somewhat
thread-safe.
See [Boost.Signals] in Multithreaded Environment, submitted on Nov 11.
(I don't know how to put a link here, sorry).
terry
begin 666 [Boost.Signals] in Multithreaded Environment.nws
M4&%T:#H@;F5W6&EM(# N,0T*"2A$
M96)I86XI*2!I9" Q06QN=5$M,# P-VAV+3 P#0H)9F]R(#QB;V]S="UU2!-:6-R;W-O9G0@36EM94],12!6-BXP,"XR.3 P+C(Y-C(-"E@M4D9#
M,C8T-CH@1F]R;6%T/49L;W=E9#L@3W)I9VEN86P-"E@M36%I;&UA;BU!<'!R
M;W9E9"U!=#H@4V%T+" Q,2!.;W8@,C P-B Q-#HU,3HU,R M,#4P, T*6"U"
M965N5&AE6]N92$-"D)O;R!35" @/3T@*%-C87)E>2!S:6=N86QS
M("8@=&AR96%DPT*("!4*B!P.PT*<'5B;&EC.@T*(" @
M97AP;&EC:70@5W)A<'!E"@I.PT*(" @(" @"DI.PT*(" @?2 O+R!G970-"B @
M(&)O;W-T.CIS:&%R961?<'1R/%0^(&]P97)A=&]R+3XH*2!C;VYS="![(')E
M='5R;B!G970H*3L@?0T*?3L@+R]7"@I('L@;&]C:RYA8W%U:7)E*"D[('T-"B @("!V;VED('-U9F9I>"@I("![
M(&QO8VLNR!]#0I].R O+R!4:650;VEN= T*#0HO+R!$96UO;G-TPT*<')I=F%T
M93H-"B @=F]I9"!H86YD;&4Q*%-I9VYA;#%!R N+BX@?0T*("!S=&0Z.G9E8W1O
M2A4:650="8@=&EE4'0I
M('L-"B @("!B;V]S=#HZ0T*?3L@+R\@57-E
(