wxWidgets/include/wx
Vadim Zeitlin 4017f5ca49 wxSocket::Initialize() and Shutdown() are for main thread only.
Calling Initialize() from another thread could never work before but it wasn't
clear that this was the case so document it in the functions comments and
documentation now and add asserts checking that they are called from the main
thread only.

Also simplify the code as we don't actually need to do any reference-counting
here and a simple boolean flag indicating whether the sockets are initialized
is enough.

Closes #11119.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-21 08:44:35 +00:00
..
aui No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
cocoa No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dfb No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
generic Really fix VC6 compilation after r61919. 2009-09-15 17:05:13 +00:00
gtk wxTextEntry::SetMargins(), GetMargins() - implemented on wxMSW and wxGTK (GTK+ 2.10+); also added similar functions into wxComboCtrl, deprecated old indent-functions; wxPropertyGrid modified to use the new functionality 2009-09-05 12:39:12 +00:00
gtk1 No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
html fix harmless warnings (mostly about unused parameters/variables) 2009-07-03 12:48:44 +00:00
meta No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
mgl No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
motif Add wxUSE_RIBBON to wx/setup_inc.h and wx/chkconf.h. 2009-09-18 22:16:59 +00:00
msdos
msw wxAny initial commit (closes #10932) 2009-09-19 08:51:11 +00:00
os2 wxAny initial commit (closes #10932) 2009-09-19 08:51:11 +00:00
osx wxAny initial commit (closes #10932) 2009-09-19 08:51:11 +00:00
palmos wxAny initial commit (closes #10932) 2009-09-19 08:51:11 +00:00
persist
private Cleanly separate GUI socket-related code from net library. 2009-08-17 23:02:46 +00:00
propgrid Added dummy wxPG_THEME_BORDER style for backwards compatibility 2009-09-14 15:17:50 +00:00
protocol Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
ribbon Added missing includes 2009-09-17 08:18:52 +00:00
richtext wxRTC's own caret is more reliable than the generic one, so use it. 2009-09-14 15:52:48 +00:00
stc
univ wxAny initial commit (closes #10932) 2009-09-19 08:51:11 +00:00
unix No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
x11 No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
xml
xrc Use UTF-8 for all non-ASCII characters in the sources. 2009-09-18 16:16:12 +00:00
aboutdlg.h Allow setting long version field in About dialog. 2009-07-25 22:53:23 +00:00
accel.h
access.h
afterstd.h remove more occurrences of MSVC #pragma warning(default) (closes #10885) 2009-06-16 21:50:23 +00:00
anidecod.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
animate.h
animdecod.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
any.h Put wxAny implementation entirely in the header. 2009-09-20 12:37:16 +00:00
anystr.h
app.h Define wxDEBUG_LEVEL in both debug and release builds as 1. 2009-09-12 11:28:52 +00:00
apptrait.h Support delayed destruction in console applications too.\n\nThis only works if there is a running event loop but if there is one, we can have the same kind of problems with non-GUI objects such as sockets in console applications as we have with windows in GUI ones, so we must support this (see #10989). 2009-07-21 14:16:44 +00:00
archive.h
arrimpl.cpp
arrstr.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
artprov.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
atomic.h
base64.h
beforestd.h disable VC6 warnings before warning(push), otherwise they're reenabled by warning(pop) in wx/afterstd.h 2009-07-09 15:19:03 +00:00
bitmap.h
bmpbuttn.h compilation fix after r61232 2009-06-28 16:22:55 +00:00
bmpcbox.h
bookctrl.h
brush.h
buffer.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
build.h Define wxDEBUG_LEVEL in both debug and release builds as 1. 2009-09-12 11:28:52 +00:00
busyinfo.h
button.h added wxBU_NOTEXT style to allow creating bitmap buttons with stock id not showing the label, as it was possible before 2009-06-17 22:13:46 +00:00
cairo.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
calctrl.h
caret.h
chartype.h Use UTF-8 for all non-ASCII characters in the sources. 2009-09-18 16:16:12 +00:00
checkbox.h
checkeddelete.h
checklst.h
chkconf.h wxAny initial commit (closes #10932) 2009-09-19 08:51:11 +00:00
choicdlg.h
choice.h
choicebk.h
clipbrd.h Include wx/dataobj.h from wx/clipbrd.h. 2009-07-20 23:54:08 +00:00
clntdata.h
clrpicker.h
cmdargs.h
cmdline.h
cmdproc.h
cmndata.h
collpane.h
colordlg.h
colour.h Add wxColour::{Set,Get}RGB[A](). 2009-09-19 16:29:50 +00:00
combo.h fixed typo : wxDEPRECTED -> wxDEPRECATED 2009-09-07 12:14:21 +00:00
combobox.h
confbase.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
config.h
containr.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
control.h
convauto.h
cpp.h
cppunit.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
crt.h
cshelp.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
ctrlsub.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
cursor.h
dataobj.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dataview.h added EVT_DATAVIEW_CACHE_HINT event (closes #9891) 2009-07-05 15:21:52 +00:00
datectrl.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
dateevt.h
datetime.h Use UTF-8 for all non-ASCII characters in the sources. 2009-09-18 16:16:12 +00:00
datstrm.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dc.h
dcbuffer.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
dcclient.h
dcgraph.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dcmemory.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dcmirror.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dcprint.h
dcps.h
dcscreen.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dcsvg.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dde.h
debug.h Define wxDEBUG_LEVEL in both debug and release builds as 1. 2009-09-12 11:28:52 +00:00
debugrpt.h Allow customizing wxDebugReportCompress output file. 2009-08-14 00:06:03 +00:00
defs.h adding types for OpenGL on iPhone 2009-09-13 17:45:21 +00:00
dialog.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
dialup.h
dir.h
dirctrl.h
dirdlg.h
display_impl.h
display.h
dlimpexp.h Merged GSOC Ribbon work from SOC2009_RIBBON branch into trunk. 2009-09-16 12:06:02 +00:00
dlist.h
dnd.h
docmdi.h disable MSVC warning 4275 correctly (closes #10885) 2009-06-12 03:37:47 +00:00
docview.h disable MSVC warning 4275 correctly (closes #10885) 2009-06-12 03:37:47 +00:00
dragimag.h
dynarray.h
dynlib.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
dynload.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
editlbox.h
effects.h
encconv.h
encinfo.h
event.h Make WXK_NUMPAD_TAB member of WXK_CATEGORY_TAB. 2009-08-23 21:39:32 +00:00
evtloop.h Dispatch pending events without waiting for idle time (closes #10994). 2009-07-20 12:14:42 +00:00
except.h
fdrepdlg.h
features.h
ffile.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
file.h
fileconf.h
filectrl.h
filedlg.h
filefn.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
filename.h Correct wxPATH_NORM_DOTS comment and documentation. 2009-08-02 01:03:00 +00:00
filepicker.h
filesys.h
flags.h
fmappriv.h
font.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
fontdlg.h
fontenc.h
fontenum.h
fontmap.h
fontpicker.h
fontutil.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
frame.h Don't overwrite status message when restoring it if it changed. 2009-08-06 00:21:16 +00:00
fs_arc.h
fs_filter.h
fs_inet.h
fs_mem.h
fs_zip.h
gauge.h
gbsizer.h
gdicmn.h
gdiobj.h
geometry.h
gifdecod.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
glcanvas.h adding glFrustum to compat API, supporting SetColour on OpenGL ES 2009-09-14 08:37:23 +00:00
graphics.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
grid.h
hash.h
hashmap.h Add information about the log message generation location to wxLog. 2009-07-09 20:26:34 +00:00
hashset.h
headercol.h
headerctrl.h
help.h
helpbase.h
helphtml.h
helpwin.h
htmllbox.h
hyperlink.h
icon.h
iconbndl.h fix compilation without wxUSE_STREAMS (closes #10900) 2009-06-16 21:57:23 +00:00
iconloc.h
imagbmp.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
image.h Add support for bilinear resize algorithm to wxImage. 2009-08-30 21:11:37 +00:00
imaggif.h
imagiff.h
imagjpeg.h
imaglist.h
imagpcx.h
imagpng.h
imagpnm.h
imagtga.h
imagtiff.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
imagxpm.h
init.h compilation fix: only one wxInitialize form may have default argument values. It doesn't make sense to specify only argc>0, so removed default values and added default wxInitializer ctor. 2009-07-31 18:48:34 +00:00
intl.h
iosfwrap.h
ioswrap.h
ipc.h
ipcbase.h
joystick.h
kbdstate.h
layout.h
laywin.h
link.h
list.h Change return type of wxList::Member() to bool. 2009-09-18 17:10:58 +00:00
listbase.h
listbook.h
listbox.h
listctrl.h
listimpl.cpp
log.h Define wxDEBUG_LEVEL in both debug and release builds as 1. 2009-09-12 11:28:52 +00:00
longlong.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
math.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
matrix.h
mdi.h
mediactrl.h
memconf.h
memory.h
memtext.h
menu.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
menuitem.h
metafile.h
mimetype.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
minifram.h
module.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
mousemanager.h
mousestate.h
msgdlg.h Use wxSTOCK_FOR_BUTTON for message dialog custom labels. 2009-07-25 16:41:16 +00:00
msgout.h Add option FILE* parameter to wxMessageOutputStderr ctor, just as with wxLogStderr. 2009-07-18 23:22:51 +00:00
msgqueue.h
mstream.h
nativewin.h
nonownedwnd.h
notebook.h
notifmsg.h
numdlg.h
object.h Rename wxObjectDataRef wxRefCounter, use it in wxVariant 2009-06-12 20:16:07 +00:00
odcombo.h
overlay.h
ownerdrw.h
palette.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
panel.h
paper.h
pen.h
persist.h
pickerbase.h
platform.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
platinfo.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
popupwin.h
position.h
power.h
print.h
printdlg.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
prntbase.h
process.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
progdlg.h
propdlg.h
ptr_scpd.h
ptr_shrd.h
quantize.h
radiobox.h
radiobut.h
rawbmp.h
rearrangectrl.h
recguard.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
regex.h
region.h
renderer.h Rename wxRendererNative::DrawRadioButton() to DrawRadioBitmap(). 2009-08-20 00:44:22 +00:00
sashwin.h
sckaddr.h
sckipc.h
sckstrm.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
scopedarray.h
scopedptr.h
scopeguard.h
scrolbar.h
scrolwin.h
selstore.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
settings.h
setup_gccxml.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
setup_inc.h wxAny initial commit (closes #10932) 2009-09-19 08:51:11 +00:00
setup_redirect.h
sharedptr.h
sizer.h Change wxBoxSizer::AddSpacer() to only add space in sizer direction. 2009-09-15 17:05:32 +00:00
slider.h
snglinst.h Allow creating wxSingleInstanceChecker with default name. 2009-09-16 12:38:00 +00:00
socket.h wxSocket::Initialize() and Shutdown() are for main thread only. 2009-09-21 08:44:35 +00:00
sound.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
spinbutt.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
spinctrl.h
splash.h
splitter.h
srchctrl.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
sstream.h
stack.h
stackwalk.h
statbmp.h
statbox.h
statline.h
stattext.h
statusbr.h Don't pop explicitly changed status messages. 2009-08-06 00:01:43 +00:00
stdpaths.h
stdstream.h
stockitem.h Added wxSTOCK_FOR_BUTTON flag for wxGetStockLabel(). 2009-07-25 16:41:05 +00:00
stopwatch.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
strconv.h Add convenient wxMBConv::cMB2WC/WC2MB overloads taking buffers. 2009-09-12 22:40:25 +00:00
stream.h
string.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
stringimpl.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
stringops.h
strvararg.h
sysopt.h
tarstrm.h
taskbar.h
tbarbase.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
textbuf.h
textctrl.h
textdlg.h
textentry.h Compilation fix after wxTextEntry::SetMargins() changes. 2009-09-06 14:31:17 +00:00
textfile.h
textwrapper.h add missing DLL export declaration to fix linking in shared library build 2009-06-10 14:43:38 +00:00
tglbtn.h
thread.h Added wxThread::GetMainId(). 2009-07-11 20:46:55 +00:00
thrimpl.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
timer.h
tipdlg.h
tipwin.h
tls.h
tokenzr.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
toolbar.h
toolbook.h
tooltip.h
toplevel.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
tracker.h
treebase.h
treebook.h
treectrl.h added wxTreeCtrl::GetFocusedItem() (closes #10859) 2009-06-19 23:34:51 +00:00
txtstrm.h
types.h
unichar.h
uri.h
url.h
ustring.h disable MSVC warning 4275 correctly (closes #10885) 2009-06-12 03:37:47 +00:00
utils.h Optionally return length from wxLoadUserResource(). 2009-09-19 16:29:57 +00:00
valgen.h
validate.h
valtext.h
variant.h Added support for wxLongLong and wxULongLong in wxVariant (closes #10166) 2009-06-15 22:43:27 +00:00
vector.h Added wxVector::swap(). 2009-07-12 17:00:29 +00:00
version.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
vidmode.h
vlbox.h Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
vms_x_fix.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
volume.h
vscroll.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
weakref.h
wfstream.h
window.h Made wxWindow::HasScrollbar() do what it says. 2009-08-10 11:18:09 +00:00
windowid.h
wizard.h
wrapsizer.h
wupdlock.h
wx_cw_cm.h
wx_cw_d.h
wx_cw.h
wx_cwc_d.h
wx_cwc.h
wx_cwcocoa_cm.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
wx_cwcocoa_d.h
wx_cwcocoa.h
wx_cwu_d.h
wx.h
wxchar.h Use UTF-8 for all non-ASCII characters in the sources. 2009-09-18 16:16:12 +00:00
wxcrt.h
wxcrtbase.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
wxcrtvararg.h Use UTF-8 for all non-ASCII characters in the sources. 2009-09-18 16:16:12 +00:00
wxhtml.h
wxprec.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
wxshlb_cw_d.h
wxshlb_cw.h
wxshlb_cwc_d.h
wxshlb_cwc.h
wxshlba_cw_d.h
wxshlba_cw.h
wxshlba_cwc_d.h
wxshlba_cwc.h
xlocale.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
xpmdecod.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
xpmhand.h
xti.h No changes, just removed hard tabs and trailing white space. 2009-08-21 10:41:26 +00:00
xtistrm.h
xtixml.h
zipstrm.h
zstream.h