Merge pull request #349 from bnema/fix/rollback-lazy-puregotk
fix(deps): emergency rollback puregotk lazy registration regression
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +19 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +29 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +38 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +53 -81 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +24 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +26 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +18 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +67 -83 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +62 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +117 -181 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +21 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +43 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +31 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +45 -70 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +35 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +43 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +24 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +23 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +13 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +14 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +52 -84 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +30 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +27 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +57 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +21 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +30 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +49 -74 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +16 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +23 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +27 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +71 -115 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +51 -77 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +22 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +80 -132 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthread.go +97 -146
| @@ -108,8 +108,6 @@ var xCondBroadcast func(uintptr) | |||
| 108 | 108 | // It is good practice to lock the same mutex as the waiting threads | |
| 109 | 109 | // while calling this function, though not required. | |
| 110 | 110 | func (x *Cond) Broadcast() { | |
| 111 | - | core.LazyRegister(&xCondBroadcast, "GLIB", "g_cond_broadcast", false) | |
| 112 | - | ||
| 113 | 111 | xCondBroadcast(x.GoPointer()) | |
| 114 | 112 | } | |
| 115 | 113 | ||
| @@ -123,8 +121,6 @@ var xCondClear func(uintptr) | |||
| 123 | 121 | // Calling g_cond_clear() for a #GCond on which threads are | |
| 124 | 122 | // blocking leads to undefined behaviour. | |
| 125 | 123 | func (x *Cond) Clear() { | |
| 126 | - | core.LazyRegister(&xCondClear, "GLIB", "g_cond_clear", false) | |
| 127 | - | ||
| 128 | 124 | xCondClear(x.GoPointer()) | |
| 129 | 125 | } | |
| 130 | 126 | ||
| @@ -135,8 +131,6 @@ var xCondFree func(uintptr) | |||
| 135 | 131 | // Calling g_cond_free() for a #GCond on which threads are | |
| 136 | 132 | // blocking leads to undefined behaviour. | |
| 137 | 133 | func (x *Cond) Free() { | |
| 138 | - | core.LazyRegister(&xCondFree, "GLIB", "g_cond_free", false) | |
| 139 | - | ||
| 140 | 134 | xCondFree(x.GoPointer()) | |
| 141 | 135 | } | |
| 142 | 136 | ||
| @@ -154,8 +148,6 @@ var xCondInit func(uintptr) | |||
| 154 | 148 | // Calling g_cond_init() on an already-initialised #GCond leads | |
| 155 | 149 | // to undefined behaviour. | |
| 156 | 150 | func (x *Cond) Init() { | |
| 157 | - | core.LazyRegister(&xCondInit, "GLIB", "g_cond_init", false) | |
| 158 | - | ||
| 159 | 151 | xCondInit(x.GoPointer()) | |
| 160 | 152 | } | |
| 161 | 153 | ||
| @@ -166,8 +158,6 @@ var xCondSignal func(uintptr) | |||
| 166 | 158 | // It is good practice to hold the same lock as the waiting thread | |
| 167 | 159 | // while calling this function, though not required. | |
| 168 | 160 | func (x *Cond) Signal() { | |
| 169 | - | core.LazyRegister(&xCondSignal, "GLIB", "g_cond_signal", false) | |
| 170 | - | ||
| 171 | 161 | xCondSignal(x.GoPointer()) | |
| 172 | 162 | } | |
| 173 | 163 | ||
| @@ -185,8 +175,6 @@ var xCondTimedWait func(uintptr, *Mutex, *TimeVal) bool | |||
| 185 | 175 | // To easily calculate @abs_time a combination of g_get_real_time() | |
| 186 | 176 | // and g_time_val_add() can be used. | |
| 187 | 177 | func (x *Cond) TimedWait(MutexVar *Mutex, AbsTimeVar *TimeVal) bool { | |
| 188 | - | core.LazyRegister(&xCondTimedWait, "GLIB", "g_cond_timed_wait", false) | |
| 189 | - | ||
| 190 | 178 | cret := xCondTimedWait(x.GoPointer(), MutexVar, AbsTimeVar) | |
| 191 | 179 | return cret | |
| 192 | 180 | } | |
| @@ -208,8 +196,6 @@ var xCondWait func(uintptr, *Mutex) | |||
| 208 | 196 | // For this reason, g_cond_wait() must always be used in a loop. See | |
| 209 | 197 | // the documentation for #GCond for a complete example. | |
| 210 | 198 | func (x *Cond) Wait(MutexVar *Mutex) { | |
| 211 | - | core.LazyRegister(&xCondWait, "GLIB", "g_cond_wait", false) | |
| 212 | - | ||
| 213 | 199 | xCondWait(x.GoPointer(), MutexVar) | |
| 214 | 200 | } | |
| 215 | 201 | ||
| @@ -266,8 +252,6 @@ var xCondWaitUntil func(uintptr, *Mutex, int64) bool | |||
| 266 | 252 | // have to start over waiting again (which would lead to a total wait | |
| 267 | 253 | // time of more than 5 seconds). | |
| 268 | 254 | func (x *Cond) WaitUntil(MutexVar *Mutex, EndTimeVar int64) bool { | |
| 269 | - | core.LazyRegister(&xCondWaitUntil, "GLIB", "g_cond_wait_until", false) | |
| 270 | - | ||
| 271 | 255 | cret := xCondWaitUntil(x.GoPointer(), MutexVar, EndTimeVar) | |
| 272 | 256 | return cret | |
| 273 | 257 | } | |
| @@ -298,8 +282,6 @@ func OnceNewFromInternalPtr(ptr uintptr) *Once { | |||
| 298 | 282 | var xOnceImpl func(uintptr, uintptr, uintptr) uintptr | |
| 299 | 283 | ||
| 300 | 284 | func (x *Once) Impl(FuncVar *ThreadFunc, ArgVar uintptr) uintptr { | |
| 301 | - | core.LazyRegister(&xOnceImpl, "GLIB", "g_once_impl", false) | |
| 302 | - | ||
| 303 | 285 | cret := xOnceImpl(x.GoPointer(), NewCallback(FuncVar), ArgVar) | |
| 304 | 286 | return cret | |
| 305 | 287 | } | |
| @@ -351,8 +333,6 @@ var xPrivateGet func(uintptr) uintptr | |||
| 351 | 333 | // Values are never copied between threads (when a new thread is | |
| 352 | 334 | // created, for example). | |
| 353 | 335 | func (x *Private) Get() uintptr { | |
| 354 | - | core.LazyRegister(&xPrivateGet, "GLIB", "g_private_get", false) | |
| 355 | - | ||
| 356 | 336 | cret := xPrivateGet(x.GoPointer()) | |
| 357 | 337 | return cret | |
| 358 | 338 | } | |
| @@ -366,8 +346,6 @@ var xPrivateReplace func(uintptr, uintptr) | |||
| 366 | 346 | // the previous value was non-%NULL then the #GDestroyNotify handler for | |
| 367 | 347 | // @key is run on it. | |
| 368 | 348 | func (x *Private) Replace(ValueVar uintptr) { | |
| 369 | - | core.LazyRegister(&xPrivateReplace, "GLIB", "g_private_replace", false) | |
| 370 | - | ||
| 371 | 349 | xPrivateReplace(x.GoPointer(), ValueVar) | |
| 372 | 350 | } | |
| 373 | 351 | ||
| @@ -379,8 +357,6 @@ var xPrivateSet func(uintptr, uintptr) | |||
| 379 | 357 | // This function differs from g_private_replace() in the following way: | |
| 380 | 358 | // the #GDestroyNotify for @key is not called on the old value. | |
| 381 | 359 | func (x *Private) Set(ValueVar uintptr) { | |
| 382 | - | core.LazyRegister(&xPrivateSet, "GLIB", "g_private_set", false) | |
| 383 | - | ||
| 384 | 360 | xPrivateSet(x.GoPointer(), ValueVar) | |
| 385 | 361 | } | |
| 386 | 362 | ||
| @@ -479,8 +455,6 @@ var xRWLockClear func(uintptr) | |||
| 479 | 455 | // Calling g_rw_lock_clear() when any thread holds the lock | |
| 480 | 456 | // leads to undefined behaviour. | |
| 481 | 457 | func (x *RWLock) Clear() { | |
| 482 | - | core.LazyRegister(&xRWLockClear, "GLIB", "g_rw_lock_clear", false) | |
| 483 | - | ||
| 484 | 458 | xRWLockClear(x.GoPointer()) | |
| 485 | 459 | } | |
| 486 | 460 | ||
| @@ -512,8 +486,6 @@ var xRWLockInit func(uintptr) | |||
| 512 | 486 | // Calling g_rw_lock_init() on an already initialized #GRWLock leads | |
| 513 | 487 | // to undefined behaviour. | |
| 514 | 488 | func (x *RWLock) Init() { | |
| 515 | - | core.LazyRegister(&xRWLockInit, "GLIB", "g_rw_lock_init", false) | |
| 516 | - | ||
| 517 | 489 | xRWLockInit(x.GoPointer()) | |
| 518 | 490 | } | |
| 519 | 491 | ||
| @@ -535,8 +507,6 @@ var xRWLockReaderLock func(uintptr) | |||
| 535 | 507 | // held on the same lock simultaneously. If the limit is hit, | |
| 536 | 508 | // or if a deadlock is detected, a critical warning will be emitted. | |
| 537 | 509 | func (x *RWLock) ReaderLock() { | |
| 538 | - | core.LazyRegister(&xRWLockReaderLock, "GLIB", "g_rw_lock_reader_lock", false) | |
| 539 | - | ||
| 540 | 510 | xRWLockReaderLock(x.GoPointer()) | |
| 541 | 511 | } | |
| 542 | 512 | ||
| @@ -546,8 +516,6 @@ var xRWLockReaderTrylock func(uintptr) bool | |||
| 546 | 516 | // the read lock was successfully obtained. Otherwise it | |
| 547 | 517 | // returns %FALSE. | |
| 548 | 518 | func (x *RWLock) ReaderTrylock() bool { | |
| 549 | - | core.LazyRegister(&xRWLockReaderTrylock, "GLIB", "g_rw_lock_reader_trylock", false) | |
| 550 | - | ||
| 551 | 519 | cret := xRWLockReaderTrylock(x.GoPointer()) | |
| 552 | 520 | return cret | |
| 553 | 521 | } | |
| @@ -559,8 +527,6 @@ var xRWLockReaderUnlock func(uintptr) | |||
| 559 | 527 | // Calling g_rw_lock_reader_unlock() on a lock that is not held | |
| 560 | 528 | // by the current thread leads to undefined behaviour. | |
| 561 | 529 | func (x *RWLock) ReaderUnlock() { | |
| 562 | - | core.LazyRegister(&xRWLockReaderUnlock, "GLIB", "g_rw_lock_reader_unlock", false) | |
| 563 | - | ||
| 564 | 530 | xRWLockReaderUnlock(x.GoPointer()) | |
| 565 | 531 | } | |
| 566 | 532 | ||
| @@ -573,8 +539,6 @@ var xRWLockWriterLock func(uintptr) | |||
| 573 | 539 | // Calling g_rw_lock_writer_lock() while the current thread already | |
| 574 | 540 | // owns a read or write lock on @rw_lock leads to undefined behaviour. | |
| 575 | 541 | func (x *RWLock) WriterLock() { | |
| 576 | - | core.LazyRegister(&xRWLockWriterLock, "GLIB", "g_rw_lock_writer_lock", false) | |
| 577 | - | ||
| 578 | 542 | xRWLockWriterLock(x.GoPointer()) | |
| 579 | 543 | } | |
| 580 | 544 | ||
| @@ -585,8 +549,6 @@ var xRWLockWriterTrylock func(uintptr) bool | |||
| 585 | 549 | // returns %FALSE. | |
| 586 | 550 | // Otherwise it locks @rw_lock and returns %TRUE. | |
| 587 | 551 | func (x *RWLock) WriterTrylock() bool { | |
| 588 | - | core.LazyRegister(&xRWLockWriterTrylock, "GLIB", "g_rw_lock_writer_trylock", false) | |
| 589 | - | ||
| 590 | 552 | cret := xRWLockWriterTrylock(x.GoPointer()) | |
| 591 | 553 | return cret | |
| 592 | 554 | } | |
| @@ -598,8 +560,6 @@ var xRWLockWriterUnlock func(uintptr) | |||
| 598 | 560 | // Calling g_rw_lock_writer_unlock() on a lock that is not held | |
| 599 | 561 | // by the current thread leads to undefined behaviour. | |
| 600 | 562 | func (x *RWLock) WriterUnlock() { | |
| 601 | - | core.LazyRegister(&xRWLockWriterUnlock, "GLIB", "g_rw_lock_writer_unlock", false) | |
| 602 | - | ||
| 603 | 563 | xRWLockWriterUnlock(x.GoPointer()) | |
| 604 | 564 | } | |
| 605 | 565 | ||
| @@ -646,8 +606,6 @@ var xRecMutexClear func(uintptr) | |||
| 646 | 606 | // Calling g_rec_mutex_clear() on a locked recursive mutex leads | |
| 647 | 607 | // to undefined behaviour. | |
| 648 | 608 | func (x *RecMutex) Clear() { | |
| 649 | - | core.LazyRegister(&xRecMutexClear, "GLIB", "g_rec_mutex_clear", false) | |
| 650 | - | ||
| 651 | 609 | xRecMutexClear(x.GoPointer()) | |
| 652 | 610 | } | |
| 653 | 611 | ||
| @@ -681,8 +639,6 @@ var xRecMutexInit func(uintptr) | |||
| 681 | 639 | // To undo the effect of g_rec_mutex_init() when a recursive mutex | |
| 682 | 640 | // is no longer needed, use g_rec_mutex_clear(). | |
| 683 | 641 | func (x *RecMutex) Init() { | |
| 684 | - | core.LazyRegister(&xRecMutexInit, "GLIB", "g_rec_mutex_init", false) | |
| 685 | - | ||
| 686 | 642 | xRecMutexInit(x.GoPointer()) | |
| 687 | 643 | } | |
| 688 | 644 | ||
| @@ -695,8 +651,6 @@ var xRecMutexLock func(uintptr) | |||
| 695 | 651 | // The mutex will only become available again when it is unlocked | |
| 696 | 652 | // as many times as it has been locked. | |
| 697 | 653 | func (x *RecMutex) Lock() { | |
| 698 | - | core.LazyRegister(&xRecMutexLock, "GLIB", "g_rec_mutex_lock", false) | |
| 699 | - | ||
| 700 | 654 | xRecMutexLock(x.GoPointer()) | |
| 701 | 655 | } | |
| 702 | 656 | ||
| @@ -706,8 +660,6 @@ var xRecMutexTrylock func(uintptr) bool | |||
| 706 | 660 | // by another thread, it immediately returns %FALSE. Otherwise | |
| 707 | 661 | // it locks @rec_mutex and returns %TRUE. | |
| 708 | 662 | func (x *RecMutex) Trylock() bool { | |
| 709 | - | core.LazyRegister(&xRecMutexTrylock, "GLIB", "g_rec_mutex_trylock", false) | |
| 710 | - | ||
| 711 | 663 | cret := xRecMutexTrylock(x.GoPointer()) | |
| 712 | 664 | return cret | |
| 713 | 665 | } | |
| @@ -721,8 +673,6 @@ var xRecMutexUnlock func(uintptr) | |||
| 721 | 673 | // Calling g_rec_mutex_unlock() on a recursive mutex that is not | |
| 722 | 674 | // locked by the current thread leads to undefined behaviour. | |
| 723 | 675 | func (x *RecMutex) Unlock() { | |
| 724 | - | core.LazyRegister(&xRecMutexUnlock, "GLIB", "g_rec_mutex_unlock", false) | |
| 725 | - | ||
| 726 | 676 | xRecMutexUnlock(x.GoPointer()) | |
| 727 | 677 | } | |
| 728 | 678 | ||
| @@ -804,16 +754,12 @@ var xStaticMutexFree func(uintptr) | |||
| 804 | 754 | // Calling g_static_mutex_free() on a locked mutex may result in | |
| 805 | 755 | // undefined behaviour. | |
| 806 | 756 | func (x *StaticMutex) Free() { | |
| 807 | - | core.LazyRegister(&xStaticMutexFree, "GLIB", "g_static_mutex_free", false) | |
| 808 | - | ||
| 809 | 757 | xStaticMutexFree(x.GoPointer()) | |
| 810 | 758 | } | |
| 811 | 759 | ||
| 812 | 760 | var xStaticMutexGetMutexImpl func(uintptr) *Mutex | |
| 813 | 761 | ||
| 814 | 762 | func (x *StaticMutex) GetMutexImpl() *Mutex { | |
| 815 | - | core.LazyRegister(&xStaticMutexGetMutexImpl, "GLIB", "g_static_mutex_get_mutex_impl", false) | |
| 816 | - | ||
| 817 | 763 | cret := xStaticMutexGetMutexImpl(x.GoPointer()) | |
| 818 | 764 | return cret | |
| 819 | 765 | } | |
| @@ -823,8 +769,6 @@ var xStaticMutexInit func(uintptr) | |||
| 823 | 769 | // Initializes @mutex. | |
| 824 | 770 | // Alternatively you can initialize it with %G_STATIC_MUTEX_INIT. | |
| 825 | 771 | func (x *StaticMutex) Init() { | |
| 826 | - | core.LazyRegister(&xStaticMutexInit, "GLIB", "g_static_mutex_init", false) | |
| 827 | - | ||
| 828 | 772 | xStaticMutexInit(x.GoPointer()) | |
| 829 | 773 | } | |
| 830 | 774 | ||
| @@ -882,8 +826,6 @@ var xStaticPrivateFree func(uintptr) | |||
| 882 | 826 | // a #GStaticPrivate as a member of a structure and the structure is | |
| 883 | 827 | // freed, you should also free the #GStaticPrivate. | |
| 884 | 828 | func (x *StaticPrivate) Free() { | |
| 885 | - | core.LazyRegister(&xStaticPrivateFree, "GLIB", "g_static_private_free", false) | |
| 886 | - | ||
| 887 | 829 | xStaticPrivateFree(x.GoPointer()) | |
| 888 | 830 | } | |
| 889 | 831 | ||
| @@ -893,8 +835,6 @@ var xStaticPrivateGet func(uintptr) uintptr | |||
| 893 | 835 | // | |
| 894 | 836 | // This function works even if g_thread_init() has not yet been called. | |
| 895 | 837 | func (x *StaticPrivate) Get() uintptr { | |
| 896 | - | core.LazyRegister(&xStaticPrivateGet, "GLIB", "g_static_private_get", false) | |
| 897 | - | ||
| 898 | 838 | cret := xStaticPrivateGet(x.GoPointer()) | |
| 899 | 839 | return cret | |
| 900 | 840 | } | |
| @@ -904,8 +844,6 @@ var xStaticPrivateInit func(uintptr) | |||
| 904 | 844 | // Initializes @private_key. Alternatively you can initialize it with | |
| 905 | 845 | // %G_STATIC_PRIVATE_INIT. | |
| 906 | 846 | func (x *StaticPrivate) Init() { | |
| 907 | - | core.LazyRegister(&xStaticPrivateInit, "GLIB", "g_static_private_init", false) | |
| 908 | - | ||
| 909 | 847 | xStaticPrivateInit(x.GoPointer()) | |
| 910 | 848 | } | |
| 911 | 849 | ||
| @@ -923,8 +861,6 @@ var xStaticPrivateSet func(uintptr, uintptr, uintptr) | |||
| 923 | 861 | // | |
| 924 | 862 | // @notify is used quite differently from @destructor in g_private_new(). | |
| 925 | 863 | func (x *StaticPrivate) Set(DataVar uintptr, NotifyVar *DestroyNotify) { | |
| 926 | - | core.LazyRegister(&xStaticPrivateSet, "GLIB", "g_static_private_set", false) | |
| 927 | - | ||
| 928 | 864 | xStaticPrivateSet(x.GoPointer(), DataVar, NewCallbackNullable(NotifyVar)) | |
| 929 | 865 | } | |
| 930 | 866 | ||
| @@ -1041,8 +977,6 @@ var xStaticRWLockFree func(uintptr) | |||
| 1041 | 977 | // a #GStaticRWLock as a member of a structure, and the structure is | |
| 1042 | 978 | // freed, you should also free the #GStaticRWLock. | |
| 1043 | 979 | func (x *StaticRWLock) Free() { | |
| 1044 | - | core.LazyRegister(&xStaticRWLockFree, "GLIB", "g_static_rw_lock_free", false) | |
| 1045 | - | ||
| 1046 | 980 | xStaticRWLockFree(x.GoPointer()) | |
| 1047 | 981 | } | |
| 1048 | 982 | ||
| @@ -1052,8 +986,6 @@ var xStaticRWLockInit func(uintptr) | |||
| 1052 | 986 | // can be used. Alternatively you can initialize it with | |
| 1053 | 987 | // %G_STATIC_RW_LOCK_INIT. | |
| 1054 | 988 | func (x *StaticRWLock) Init() { | |
| 1055 | - | core.LazyRegister(&xStaticRWLockInit, "GLIB", "g_static_rw_lock_init", false) | |
| 1056 | - | ||
| 1057 | 989 | xStaticRWLockInit(x.GoPointer()) | |
| 1058 | 990 | } | |
| 1059 | 991 | ||
| @@ -1071,8 +1003,6 @@ var xStaticRWLockReaderLock func(uintptr) | |||
| 1071 | 1003 | // recursively lock for reading, but that can result in a deadlock, due | |
| 1072 | 1004 | // to writer preference. | |
| 1073 | 1005 | func (x *StaticRWLock) ReaderLock() { | |
| 1074 | - | core.LazyRegister(&xStaticRWLockReaderLock, "GLIB", "g_static_rw_lock_reader_lock", false) | |
| 1075 | - | ||
| 1076 | 1006 | xStaticRWLockReaderLock(x.GoPointer()) | |
| 1077 | 1007 | } | |
| 1078 | 1008 | ||
| @@ -1084,8 +1014,6 @@ var xStaticRWLockReaderTrylock func(uintptr) bool | |||
| 1084 | 1014 | // @lock for reading and returns %TRUE. This lock has to be unlocked by | |
| 1085 | 1015 | // g_static_rw_lock_reader_unlock(). | |
| 1086 | 1016 | func (x *StaticRWLock) ReaderTrylock() bool { | |
| 1087 | - | core.LazyRegister(&xStaticRWLockReaderTrylock, "GLIB", "g_static_rw_lock_reader_trylock", false) | |
| 1088 | - | ||
| 1089 | 1017 | cret := xStaticRWLockReaderTrylock(x.GoPointer()) | |
| 1090 | 1018 | return cret | |
| 1091 | 1019 | } | |
| @@ -1096,8 +1024,6 @@ var xStaticRWLockReaderUnlock func(uintptr) | |||
| 1096 | 1024 | // locks for reading have been unlocked, the waiting thread is woken up | |
| 1097 | 1025 | // and can lock @lock for writing. | |
| 1098 | 1026 | func (x *StaticRWLock) ReaderUnlock() { | |
| 1099 | - | core.LazyRegister(&xStaticRWLockReaderUnlock, "GLIB", "g_static_rw_lock_reader_unlock", false) | |
| 1100 | - | ||
| 1101 | 1027 | xStaticRWLockReaderUnlock(x.GoPointer()) | |
| 1102 | 1028 | } | |
| 1103 | 1029 | ||
| @@ -1111,8 +1037,6 @@ var xStaticRWLockWriterLock func(uintptr) | |||
| 1111 | 1037 | // @lock (neither for reading nor writing). This lock has to be | |
| 1112 | 1038 | // unlocked by g_static_rw_lock_writer_unlock(). | |
| 1113 | 1039 | func (x *StaticRWLock) WriterLock() { | |
| 1114 | - | core.LazyRegister(&xStaticRWLockWriterLock, "GLIB", "g_static_rw_lock_writer_lock", false) | |
| 1115 | - | ||
| 1116 | 1040 | xStaticRWLockWriterLock(x.GoPointer()) | |
| 1117 | 1041 | } | |
| 1118 | 1042 | ||
| @@ -1123,8 +1047,6 @@ var xStaticRWLockWriterTrylock func(uintptr) bool | |||
| 1123 | 1047 | // %FALSE. Otherwise it locks @lock for writing and returns %TRUE. This | |
| 1124 | 1048 | // lock has to be unlocked by g_static_rw_lock_writer_unlock(). | |
| 1125 | 1049 | func (x *StaticRWLock) WriterTrylock() bool { | |
| 1126 | - | core.LazyRegister(&xStaticRWLockWriterTrylock, "GLIB", "g_static_rw_lock_writer_trylock", false) | |
| 1127 | - | ||
| 1128 | 1050 | cret := xStaticRWLockWriterTrylock(x.GoPointer()) | |
| 1129 | 1051 | return cret | |
| 1130 | 1052 | } | |
| @@ -1138,8 +1060,6 @@ var xStaticRWLockWriterUnlock func(uintptr) | |||
| 1138 | 1060 | // lock @lock for reading, the waiting threads are woken up and can | |
| 1139 | 1061 | // lock @lock for reading. | |
| 1140 | 1062 | func (x *StaticRWLock) WriterUnlock() { | |
| 1141 | - | core.LazyRegister(&xStaticRWLockWriterUnlock, "GLIB", "g_static_rw_lock_writer_unlock", false) | |
| 1142 | - | ||
| 1143 | 1063 | xStaticRWLockWriterUnlock(x.GoPointer()) | |
| 1144 | 1064 | } | |
| 1145 | 1065 | ||
| @@ -1189,8 +1109,6 @@ var xStaticRecMutexFree func(uintptr) | |||
| 1189 | 1109 | // a #GStaticRecMutex as a member of a structure and the structure is | |
| 1190 | 1110 | // freed, you should also free the #GStaticRecMutex. | |
| 1191 | 1111 | func (x *StaticRecMutex) Free() { | |
| 1192 | - | core.LazyRegister(&xStaticRecMutexFree, "GLIB", "g_static_rec_mutex_free", false) | |
| 1193 | - | ||
| 1194 | 1112 | xStaticRecMutexFree(x.GoPointer()) | |
| 1195 | 1113 | } | |
| 1196 | 1114 | ||
| @@ -1200,8 +1118,6 @@ var xStaticRecMutexInit func(uintptr) | |||
| 1200 | 1118 | // can be used. Alternatively you can initialize it with | |
| 1201 | 1119 | // %G_STATIC_REC_MUTEX_INIT. | |
| 1202 | 1120 | func (x *StaticRecMutex) Init() { | |
| 1203 | - | core.LazyRegister(&xStaticRecMutexInit, "GLIB", "g_static_rec_mutex_init", false) | |
| 1204 | - | ||
| 1205 | 1121 | xStaticRecMutexInit(x.GoPointer()) | |
| 1206 | 1122 | } | |
| 1207 | 1123 | ||
| @@ -1212,8 +1128,6 @@ var xStaticRecMutexLock func(uintptr) | |||
| 1212 | 1128 | // thread. If @mutex is already locked by the calling thread, this | |
| 1213 | 1129 | // functions increases the depth of @mutex and returns immediately. | |
| 1214 | 1130 | func (x *StaticRecMutex) Lock() { | |
| 1215 | - | core.LazyRegister(&xStaticRecMutexLock, "GLIB", "g_static_rec_mutex_lock", false) | |
| 1216 | - | ||
| 1217 | 1131 | xStaticRecMutexLock(x.GoPointer()) | |
| 1218 | 1132 | } | |
| 1219 | 1133 | ||
| @@ -1221,8 +1135,6 @@ var xStaticRecMutexLockFull func(uintptr, uint) | |||
| 1221 | 1135 | ||
| 1222 | 1136 | // Works like calling g_static_rec_mutex_lock() for @mutex @depth times. | |
| 1223 | 1137 | func (x *StaticRecMutex) LockFull(DepthVar uint) { | |
| 1224 | - | core.LazyRegister(&xStaticRecMutexLockFull, "GLIB", "g_static_rec_mutex_lock_full", false) | |
| 1225 | - | ||
| 1226 | 1138 | xStaticRecMutexLockFull(x.GoPointer(), DepthVar) | |
| 1227 | 1139 | } | |
| 1228 | 1140 | ||
| @@ -1234,8 +1146,6 @@ var xStaticRecMutexTrylock func(uintptr) bool | |||
| 1234 | 1146 | // functions increases the depth of @mutex and immediately returns | |
| 1235 | 1147 | // %TRUE. | |
| 1236 | 1148 | func (x *StaticRecMutex) Trylock() bool { | |
| 1237 | - | core.LazyRegister(&xStaticRecMutexTrylock, "GLIB", "g_static_rec_mutex_trylock", false) | |
| 1238 | - | ||
| 1239 | 1149 | cret := xStaticRecMutexTrylock(x.GoPointer()) | |
| 1240 | 1150 | return cret | |
| 1241 | 1151 | } | |
| @@ -1248,8 +1158,6 @@ var xStaticRecMutexUnlock func(uintptr) | |||
| 1248 | 1158 | // blocked in a g_static_rec_mutex_lock() call for @mutex, it will be | |
| 1249 | 1159 | // woken and can lock @mutex itself. | |
| 1250 | 1160 | func (x *StaticRecMutex) Unlock() { | |
| 1251 | - | core.LazyRegister(&xStaticRecMutexUnlock, "GLIB", "g_static_rec_mutex_unlock", false) | |
| 1252 | - | ||
| 1253 | 1161 | xStaticRecMutexUnlock(x.GoPointer()) | |
| 1254 | 1162 | } | |
| 1255 | 1163 | ||
| @@ -1263,8 +1171,6 @@ var xStaticRecMutexUnlockFull func(uintptr) uint | |||
| 1263 | 1171 | // g_static_rec_mutex_lock_full() with the depth returned by this | |
| 1264 | 1172 | // function. | |
| 1265 | 1173 | func (x *StaticRecMutex) UnlockFull() uint { | |
| 1266 | - | core.LazyRegister(&xStaticRecMutexUnlockFull, "GLIB", "g_static_rec_mutex_unlock_full", false) | |
| 1267 | - | ||
| 1268 | 1174 | cret := xStaticRecMutexUnlockFull(x.GoPointer()) | |
| 1269 | 1175 | return cret | |
| 1270 | 1176 | } | |
| @@ -1297,7 +1203,6 @@ type Thread struct { | |||
| 1297 | 1203 | var xThreadGLibType func() types.GType | |
| 1298 | 1204 | ||
| 1299 | 1205 | func ThreadGLibType() types.GType { | |
| 1300 | - | core.LazyRegister(&xThreadGLibType, "GLIB", "g_thread_get_type", false) | |
| 1301 | 1206 | return xThreadGLibType() | |
| 1302 | 1207 | } | |
| 1303 | 1208 | ||
| @@ -1343,8 +1248,6 @@ var xNewThread func(uintptr, uintptr, uintptr) uintptr | |||
| 1343 | 1248 | // Starting with GLib 2.64 the behaviour is now consistent between Windows and | |
| 1344 | 1249 | // POSIX and all threads inherit their parent thread's priority. | |
| 1345 | 1250 | func NewThread(NameVar *string, FuncVar *ThreadFunc, DataVar uintptr) *Thread { | |
| 1346 | - | core.LazyRegister(&xNewThread, "GLIB", "g_thread_new", false) | |
| 1347 | - | ||
| 1348 | 1251 | NameVarPtr := core.GStrdupNullable(NameVar) | |
| 1349 | 1252 | defer core.GFreeNullable(NameVarPtr) | |
| 1350 | 1253 | ||
| @@ -1363,7 +1266,6 @@ var xThreadTryNew func(uintptr, uintptr, uintptr, **Error) uintptr | |||
| 1363 | 1266 | // If a thread can not be created (due to resource limits), | |
| 1364 | 1267 | // @error is set and %NULL is returned. | |
| 1365 | 1268 | func ThreadTryNew(NameVar *string, FuncVar *ThreadFunc, DataVar uintptr) (*Thread, error) { | |
| 1366 | - | core.LazyRegister(&xThreadTryNew, "GLIB", "g_thread_try_new", false) | |
| 1367 | 1269 | var cerr *Error | |
| 1368 | 1270 | ||
| 1369 | 1271 | NameVarPtr := core.GStrdupNullable(NameVar) | |
| @@ -1385,8 +1287,6 @@ var xThreadGetName func(uintptr) string | |||
| 1385 | 1287 | // | |
| 1386 | 1288 | // This function is intended for debugging purposes. | |
| 1387 | 1289 | func (x *Thread) GetName() string { | |
| 1388 | - | core.LazyRegister(&xThreadGetName, "GLIB", "g_thread_get_name", false) | |
| 1389 | - | ||
| 1390 | 1290 | cret := xThreadGetName(x.GoPointer()) | |
| 1391 | 1291 | return cret | |
| 1392 | 1292 | } | |
| @@ -1410,8 +1310,6 @@ var xThreadJoin func(uintptr) uintptr | |||
| 1410 | 1310 | // to be freed. Use g_thread_ref() to obtain an extra reference if you | |
| 1411 | 1311 | // want to keep the GThread alive beyond the g_thread_join() call. | |
| 1412 | 1312 | func (x *Thread) Join() uintptr { | |
| 1413 | - | core.LazyRegister(&xThreadJoin, "GLIB", "g_thread_join", false) | |
| 1414 | - | ||
| 1415 | 1313 | cret := xThreadJoin(x.GoPointer()) | |
| 1416 | 1314 | return cret | |
| 1417 | 1315 | } | |
| @@ -1420,8 +1318,6 @@ var xThreadRef func(uintptr) uintptr | |||
| 1420 | 1318 | ||
| 1421 | 1319 | // Increase the reference count on @thread. | |
| 1422 | 1320 | func (x *Thread) Ref() *Thread { | |
| 1423 | - | core.LazyRegister(&xThreadRef, "GLIB", "g_thread_ref", false) | |
| 1424 | - | ||
| 1425 | 1321 | cret := xThreadRef(x.GoPointer()) | |
| 1426 | 1322 | if cret == 0 { | |
| 1427 | 1323 | return nil | |
| @@ -1433,8 +1329,6 @@ var xThreadSetPriority func(uintptr, ThreadPriority) | |||
| 1433 | 1329 | ||
| 1434 | 1330 | // This function does nothing. | |
| 1435 | 1331 | func (x *Thread) SetPriority(PriorityVar ThreadPriority) { | |
| 1436 | - | core.LazyRegister(&xThreadSetPriority, "GLIB", "g_thread_set_priority", false) | |
| 1437 | - | ||
| 1438 | 1332 | xThreadSetPriority(x.GoPointer(), PriorityVar) | |
| 1439 | 1333 | } | |
| 1440 | 1334 | ||
| @@ -1447,8 +1341,6 @@ var xThreadUnref func(uintptr) | |||
| 1447 | 1341 | // it is running, so it is safe to drop your own reference to it | |
| 1448 | 1342 | // if you don't need it anymore. | |
| 1449 | 1343 | func (x *Thread) Unref() { | |
| 1450 | - | core.LazyRegister(&xThreadUnref, "GLIB", "g_thread_unref", false) | |
| 1451 | - | ||
| 1452 | 1344 | xThreadUnref(x.GoPointer()) | |
| 1453 | 1345 | } | |
| 1454 | 1346 | ||
| @@ -1884,7 +1776,7 @@ func (x *ThreadFunctions) OverrideThreadCreate(cb func(*ThreadFunc, uintptr, uin | |||
| 1884 | 1776 | if cb == nil { | |
| 1885 | 1777 | x.xThreadCreate = 0 | |
| 1886 | 1778 | } else { | |
| 1887 | - | x.xThreadCreate = purego.NewCallback(func(FuncVarp uintptr, DataVarp uintptr, StackSizeVarp uint, JoinableVarp bool, BoundVarp bool, PriorityVarp ThreadPriority, ThreadVarp uintptr, cerrp **Error) { | |
| 1779 | + | x.xThreadCreate = purego.NewCallback(func(FuncVarp uintptr, DataVarp uintptr, StackSizeVarp uint, JoinableVarp bool, BoundVarp bool, PriorityVarp ThreadPriority, ThreadVarp uintptr) { | |
| 1888 | 1780 | cb((*ThreadFunc)(unsafe.Pointer(FuncVarp)), DataVarp, StackSizeVarp, JoinableVarp, BoundVarp, PriorityVarp, ThreadVarp) | |
| 1889 | 1781 | }) | |
| 1890 | 1782 | } | |
| @@ -1896,11 +1788,10 @@ func (x *ThreadFunctions) GetThreadCreate() func(*ThreadFunc, uintptr, uint, boo | |||
| 1896 | 1788 | if x.xThreadCreate == 0 { | |
| 1897 | 1789 | return nil | |
| 1898 | 1790 | } | |
| 1899 | - | var rawCallback func(FuncVarp uintptr, DataVarp uintptr, StackSizeVarp uint, JoinableVarp bool, BoundVarp bool, PriorityVarp ThreadPriority, ThreadVarp uintptr, cerrp **Error) | |
| 1791 | + | var rawCallback func(FuncVarp uintptr, DataVarp uintptr, StackSizeVarp uint, JoinableVarp bool, BoundVarp bool, PriorityVarp ThreadPriority, ThreadVarp uintptr) | |
| 1900 | 1792 | purego.RegisterFunc(&rawCallback, x.xThreadCreate) | |
| 1901 | 1793 | return func(FuncVar *ThreadFunc, DataVar uintptr, StackSizeVar uint, JoinableVar bool, BoundVar bool, PriorityVar ThreadPriority, ThreadVar uintptr) { | |
| 1902 | - | var cerr *Error | |
| 1903 | - | rawCallback(NewCallback(FuncVar), DataVar, StackSizeVar, JoinableVar, BoundVar, PriorityVar, ThreadVar, &cerr) | |
| 1794 | + | rawCallback(NewCallback(FuncVar), DataVar, StackSizeVar, JoinableVar, BoundVar, PriorityVar, ThreadVar) | |
| 1904 | 1795 | } | |
| 1905 | 1796 | } | |
| 1906 | 1797 | ||
| @@ -2167,8 +2058,6 @@ var xCondNew func() uintptr | |||
| 2167 | 2058 | ||
| 2168 | 2059 | // Allocates and initializes a new #GCond. | |
| 2169 | 2060 | func CondNew() *Cond { | |
| 2170 | - | core.LazyRegister(&xCondNew, "GLIB", "g_cond_new", false) | |
| 2171 | - | ||
| 2172 | 2061 | cret := xCondNew() | |
| 2173 | 2062 | if cret == 0 { | |
| 2174 | 2063 | return nil | |
| @@ -2183,8 +2072,6 @@ var xGetNumProcessors func() uint | |||
| 2183 | 2072 | // used as a parameter to g_thread_pool_new() for CPU bound tasks and | |
| 2184 | 2073 | // similar cases. | |
| 2185 | 2074 | func GetNumProcessors() uint { | |
| 2186 | - | core.LazyRegister(&xGetNumProcessors, "GLIB", "g_get_num_processors", false) | |
| 2187 | - | ||
| 2188 | 2075 | cret := xGetNumProcessors() | |
| 2189 | 2076 | return cret | |
| 2190 | 2077 | } | |
| @@ -2193,8 +2080,6 @@ var xMutexNew func() *Mutex | |||
| 2193 | 2080 | ||
| 2194 | 2081 | // Allocates and initializes a new #GMutex. | |
| 2195 | 2082 | func MutexNew() *Mutex { | |
| 2196 | - | core.LazyRegister(&xMutexNew, "GLIB", "g_mutex_new", false) | |
| 2197 | - | ||
| 2198 | 2083 | cret := xMutexNew() | |
| 2199 | 2084 | return cret | |
| 2200 | 2085 | } | |
| @@ -2229,8 +2114,6 @@ var xOnceInitEnter func(*uintptr) bool | |||
| 2229 | 2114 | // While @location has a `volatile` qualifier, this is a historical artifact and | |
| 2230 | 2115 | // the pointer passed to it should not be `volatile`. | |
| 2231 | 2116 | func OnceInitEnter(LocationVar *uintptr) bool { | |
| 2232 | - | core.LazyRegister(&xOnceInitEnter, "GLIB", "g_once_init_enter", false) | |
| 2233 | - | ||
| 2234 | 2117 | cret := xOnceInitEnter(LocationVar) | |
| 2235 | 2118 | return cret | |
| 2236 | 2119 | } | |
| @@ -2238,8 +2121,6 @@ func OnceInitEnter(LocationVar *uintptr) bool { | |||
| 2238 | 2121 | var xOnceInitEnterImpl func(uint) bool | |
| 2239 | 2122 | ||
| 2240 | 2123 | func OnceInitEnterImpl(LocationVar uint) bool { | |
| 2241 | - | core.LazyRegister(&xOnceInitEnterImpl, "GLIB", "g_once_init_enter_impl", false) | |
| 2242 | - | ||
| 2243 | 2124 | cret := xOnceInitEnterImpl(LocationVar) | |
| 2244 | 2125 | return cret | |
| 2245 | 2126 | } | |
| @@ -2264,8 +2145,6 @@ var xOnceInitEnterPointer func(uintptr) bool | |||
| 2264 | 2145 | // | |
| 2265 | 2146 | // ]| | |
| 2266 | 2147 | func OnceInitEnterPointer(LocationVar uintptr) bool { | |
| 2267 | - | core.LazyRegister(&xOnceInitEnterPointer, "GLIB", "g_once_init_enter_pointer", false) | |
| 2268 | - | ||
| 2269 | 2148 | cret := xOnceInitEnterPointer(LocationVar) | |
| 2270 | 2149 | return cret | |
| 2271 | 2150 | } | |
| @@ -2281,8 +2160,6 @@ var xOnceInitLeave func(*uintptr, uint) | |||
| 2281 | 2160 | // While @location has a `volatile` qualifier, this is a historical artifact and | |
| 2282 | 2161 | // the pointer passed to it should not be `volatile`. | |
| 2283 | 2162 | func OnceInitLeave(LocationVar *uintptr, ResultVar uint) { | |
| 2284 | - | core.LazyRegister(&xOnceInitLeave, "GLIB", "g_once_init_leave", false) | |
| 2285 | - | ||
| 2286 | 2163 | xOnceInitLeave(LocationVar, ResultVar) | |
| 2287 | 2164 | } | |
| 2288 | 2165 | ||
| @@ -2297,8 +2174,6 @@ var xOnceInitLeavePointer func(uintptr, uintptr) | |||
| 2297 | 2174 | // This functions behaves in the same way as g_once_init_leave(), but | |
| 2298 | 2175 | // can be used to initialize pointers (or #guintptr) instead of #gsize. | |
| 2299 | 2176 | func OnceInitLeavePointer(LocationVar uintptr, ResultVar uintptr) { | |
| 2300 | - | core.LazyRegister(&xOnceInitLeavePointer, "GLIB", "g_once_init_leave_pointer", false) | |
| 2301 | - | ||
| 2302 | 2177 | xOnceInitLeavePointer(LocationVar, ResultVar) | |
| 2303 | 2178 | } | |
| 2304 | 2179 | ||
| @@ -2306,8 +2181,6 @@ var xPrivateNew func(uintptr) uintptr | |||
| 2306 | 2181 | ||
| 2307 | 2182 | // Creates a new #GPrivate. | |
| 2308 | 2183 | func PrivateNew(NotifyVar *DestroyNotify) *Private { | |
| 2309 | - | core.LazyRegister(&xPrivateNew, "GLIB", "g_private_new", false) | |
| 2310 | - | ||
| 2311 | 2184 | cret := xPrivateNew(NewCallbackNullable(NotifyVar)) | |
| 2312 | 2185 | if cret == 0 { | |
| 2313 | 2186 | return nil | |
| @@ -2330,7 +2203,6 @@ var xThreadCreate func(uintptr, uintptr, bool, **Error) uintptr | |||
| 2330 | 2203 | // calling g_thread_unref() or g_thread_join(). If @joinable is %FALSE | |
| 2331 | 2204 | // then you should probably not touch the return value. | |
| 2332 | 2205 | func ThreadCreate(FuncVar *ThreadFunc, DataVar uintptr, JoinableVar bool) (*Thread, error) { | |
| 2333 | - | core.LazyRegister(&xThreadCreate, "GLIB", "g_thread_create", false) | |
| 2334 | 2206 | var cerr *Error | |
| 2335 | 2207 | ||
| 2336 | 2208 | cret := xThreadCreate(NewCallback(FuncVar), DataVar, JoinableVar, &cerr) | |
| @@ -2347,7 +2219,6 @@ var xThreadCreateFull func(uintptr, uintptr, uint, bool, bool, ThreadPriority, * | |||
| 2347 | 2219 | ||
| 2348 | 2220 | // This function creates a new thread. | |
| 2349 | 2221 | func ThreadCreateFull(FuncVar *ThreadFunc, DataVar uintptr, StackSizeVar uint, JoinableVar bool, BoundVar bool, PriorityVar ThreadPriority) (*Thread, error) { | |
| 2350 | - | core.LazyRegister(&xThreadCreateFull, "GLIB", "g_thread_create_full", false) | |
| 2351 | 2222 | var cerr *Error | |
| 2352 | 2223 | ||
| 2353 | 2224 | cret := xThreadCreateFull(NewCallback(FuncVar), DataVar, StackSizeVar, JoinableVar, BoundVar, PriorityVar, &cerr) | |
| @@ -2376,8 +2247,6 @@ var xThreadExit func(uintptr) | |||
| 2376 | 2247 | // this function from a thread created with another threading library | |
| 2377 | 2248 | // or or from within a #GThreadPool. | |
| 2378 | 2249 | func ThreadExit(RetvalVar uintptr) { | |
| 2379 | - | core.LazyRegister(&xThreadExit, "GLIB", "g_thread_exit", false) | |
| 2380 | - | ||
| 2381 | 2250 | xThreadExit(RetvalVar) | |
| 2382 | 2251 | } | |
| 2383 | 2252 | ||
| @@ -2395,8 +2264,6 @@ var xThreadForeach func(uintptr, uintptr) | |||
| 2395 | 2264 | // Due to thread lifetime checks, this function has an execution complexity | |
| 2396 | 2265 | // which is quadratic in the number of existing threads. | |
| 2397 | 2266 | func ThreadForeach(ThreadFuncVar *Func, UserDataVar uintptr) { | |
| 2398 | - | core.LazyRegister(&xThreadForeach, "GLIB", "g_thread_foreach", false) | |
| 2399 | - | ||
| 2400 | 2267 | xThreadForeach(NewCallback(ThreadFuncVar), UserDataVar) | |
| 2401 | 2268 | } | |
| 2402 | 2269 | ||
| @@ -2404,8 +2271,6 @@ var xThreadGetInitialized func() bool | |||
| 2404 | 2271 | ||
| 2405 | 2272 | // Indicates if g_thread_init() has been called. | |
| 2406 | 2273 | func ThreadGetInitialized() bool { | |
| 2407 | - | core.LazyRegister(&xThreadGetInitialized, "GLIB", "g_thread_get_initialized", false) | |
| 2408 | - | ||
| 2409 | 2274 | cret := xThreadGetInitialized() | |
| 2410 | 2275 | return cret | |
| 2411 | 2276 | } | |
| @@ -2435,16 +2300,12 @@ var xThreadInit func(uintptr) | |||
| 2435 | 2300 | // functions of GLib. Those can be used without having to link | |
| 2436 | 2301 | // with the thread libraries. | |
| 2437 | 2302 | func ThreadInit(VtableVar uintptr) { | |
| 2438 | - | core.LazyRegister(&xThreadInit, "GLIB", "g_thread_init", false) | |
| 2439 | - | ||
| 2440 | 2303 | xThreadInit(VtableVar) | |
| 2441 | 2304 | } | |
| 2442 | 2305 | ||
| 2443 | 2306 | var xThreadInitWithErrorcheckMutexes func(uintptr) | |
| 2444 | 2307 | ||
| 2445 | 2308 | func ThreadInitWithErrorcheckMutexes(VtableVar uintptr) { | |
| 2446 | - | core.LazyRegister(&xThreadInitWithErrorcheckMutexes, "GLIB", "g_thread_init_with_errorcheck_mutexes", false) | |
| 2447 | - | ||
| 2448 | 2309 | xThreadInitWithErrorcheckMutexes(VtableVar) | |
| 2449 | 2310 | } | |
| 2450 | 2311 | ||
| @@ -2460,8 +2321,6 @@ var xThreadSelf func() uintptr | |||
| 2460 | 2321 | // (i.e. comparisons) but you must not use GLib functions (such | |
| 2461 | 2322 | // as g_thread_join()) on these threads. | |
| 2462 | 2323 | func ThreadSelf() *Thread { | |
| 2463 | - | core.LazyRegister(&xThreadSelf, "GLIB", "g_thread_self", false) | |
| 2464 | - | ||
| 2465 | 2324 | cret := xThreadSelf() | |
| 2466 | 2325 | if cret == 0 { | |
| 2467 | 2326 | return nil | |
| @@ -2476,12 +2335,104 @@ var xThreadYield func() | |||
| 2476 | 2335 | // | |
| 2477 | 2336 | // This function is often used as a method to make busy wait less evil. | |
| 2478 | 2337 | func ThreadYield() { | |
| 2479 | - | core.LazyRegister(&xThreadYield, "GLIB", "g_thread_yield", false) | |
| 2480 | - | ||
| 2481 | 2338 | xThreadYield() | |
| 2482 | 2339 | } | |
| 2483 | 2340 | ||
| 2484 | 2341 | func init() { | |
| 2485 | 2342 | core.SetPackageName("GLIB", "glib-2.0") | |
| 2486 | 2343 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 2344 | + | var libs []uintptr | |
| 2345 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 2346 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 2347 | + | if err != nil { | |
| 2348 | + | panic(err) | |
| 2349 | + | } | |
| 2350 | + | libs = append(libs, lib) | |
| 2351 | + | } | |
| 2352 | + | ||
| 2353 | + | core.PuregoSafeRegister(&xCondNew, libs, "g_cond_new") | |
| 2354 | + | core.PuregoSafeRegister(&xGetNumProcessors, libs, "g_get_num_processors") | |
| 2355 | + | core.PuregoSafeRegister(&xMutexNew, libs, "g_mutex_new") | |
| 2356 | + | core.PuregoSafeRegister(&xOnceInitEnter, libs, "g_once_init_enter") | |
| 2357 | + | core.PuregoSafeRegister(&xOnceInitEnterImpl, libs, "g_once_init_enter_impl") | |
| 2358 | + | core.PuregoSafeRegister(&xOnceInitEnterPointer, libs, "g_once_init_enter_pointer") | |
| 2359 | + | core.PuregoSafeRegister(&xOnceInitLeave, libs, "g_once_init_leave") | |
| 2360 | + | core.PuregoSafeRegister(&xOnceInitLeavePointer, libs, "g_once_init_leave_pointer") | |
| 2361 | + | core.PuregoSafeRegister(&xPrivateNew, libs, "g_private_new") | |
| 2362 | + | core.PuregoSafeRegister(&xThreadCreate, libs, "g_thread_create") | |
| 2363 | + | core.PuregoSafeRegister(&xThreadCreateFull, libs, "g_thread_create_full") | |
| 2364 | + | core.PuregoSafeRegister(&xThreadExit, libs, "g_thread_exit") | |
| 2365 | + | core.PuregoSafeRegister(&xThreadForeach, libs, "g_thread_foreach") | |
| 2366 | + | core.PuregoSafeRegister(&xThreadGetInitialized, libs, "g_thread_get_initialized") | |
| 2367 | + | core.PuregoSafeRegister(&xThreadInit, libs, "g_thread_init") | |
| 2368 | + | core.PuregoSafeRegister(&xThreadInitWithErrorcheckMutexes, libs, "g_thread_init_with_errorcheck_mutexes") | |
| 2369 | + | core.PuregoSafeRegister(&xThreadSelf, libs, "g_thread_self") | |
| 2370 | + | core.PuregoSafeRegister(&xThreadYield, libs, "g_thread_yield") | |
| 2371 | + | ||
| 2372 | + | core.PuregoSafeRegister(&xCondBroadcast, libs, "g_cond_broadcast") | |
| 2373 | + | core.PuregoSafeRegister(&xCondClear, libs, "g_cond_clear") | |
| 2374 | + | core.PuregoSafeRegister(&xCondFree, libs, "g_cond_free") | |
| 2375 | + | core.PuregoSafeRegister(&xCondInit, libs, "g_cond_init") | |
| 2376 | + | core.PuregoSafeRegister(&xCondSignal, libs, "g_cond_signal") | |
| 2377 | + | core.PuregoSafeRegister(&xCondTimedWait, libs, "g_cond_timed_wait") | |
| 2378 | + | core.PuregoSafeRegister(&xCondWait, libs, "g_cond_wait") | |
| 2379 | + | core.PuregoSafeRegister(&xCondWaitUntil, libs, "g_cond_wait_until") | |
| 2380 | + | ||
| 2381 | + | core.PuregoSafeRegister(&xOnceImpl, libs, "g_once_impl") | |
| 2382 | + | ||
| 2383 | + | core.PuregoSafeRegister(&xPrivateGet, libs, "g_private_get") | |
| 2384 | + | core.PuregoSafeRegister(&xPrivateReplace, libs, "g_private_replace") | |
| 2385 | + | core.PuregoSafeRegister(&xPrivateSet, libs, "g_private_set") | |
| 2386 | + | ||
| 2387 | + | core.PuregoSafeRegister(&xRWLockClear, libs, "g_rw_lock_clear") | |
| 2388 | + | core.PuregoSafeRegister(&xRWLockInit, libs, "g_rw_lock_init") | |
| 2389 | + | core.PuregoSafeRegister(&xRWLockReaderLock, libs, "g_rw_lock_reader_lock") | |
| 2390 | + | core.PuregoSafeRegister(&xRWLockReaderTrylock, libs, "g_rw_lock_reader_trylock") | |
| 2391 | + | core.PuregoSafeRegister(&xRWLockReaderUnlock, libs, "g_rw_lock_reader_unlock") | |
| 2392 | + | core.PuregoSafeRegister(&xRWLockWriterLock, libs, "g_rw_lock_writer_lock") | |
| 2393 | + | core.PuregoSafeRegister(&xRWLockWriterTrylock, libs, "g_rw_lock_writer_trylock") | |
| 2394 | + | core.PuregoSafeRegister(&xRWLockWriterUnlock, libs, "g_rw_lock_writer_unlock") | |
| 2395 | + | ||
| 2396 | + | core.PuregoSafeRegister(&xRecMutexClear, libs, "g_rec_mutex_clear") | |
| 2397 | + | core.PuregoSafeRegister(&xRecMutexInit, libs, "g_rec_mutex_init") | |
| 2398 | + | core.PuregoSafeRegister(&xRecMutexLock, libs, "g_rec_mutex_lock") | |
| 2399 | + | core.PuregoSafeRegister(&xRecMutexTrylock, libs, "g_rec_mutex_trylock") | |
| 2400 | + | core.PuregoSafeRegister(&xRecMutexUnlock, libs, "g_rec_mutex_unlock") | |
| 2401 | + | ||
| 2402 | + | core.PuregoSafeRegister(&xStaticMutexFree, libs, "g_static_mutex_free") | |
| 2403 | + | core.PuregoSafeRegister(&xStaticMutexGetMutexImpl, libs, "g_static_mutex_get_mutex_impl") | |
| 2404 | + | core.PuregoSafeRegister(&xStaticMutexInit, libs, "g_static_mutex_init") | |
| 2405 | + | ||
| 2406 | + | core.PuregoSafeRegister(&xStaticPrivateFree, libs, "g_static_private_free") | |
| 2407 | + | core.PuregoSafeRegister(&xStaticPrivateGet, libs, "g_static_private_get") | |
| 2408 | + | core.PuregoSafeRegister(&xStaticPrivateInit, libs, "g_static_private_init") | |
| 2409 | + | core.PuregoSafeRegister(&xStaticPrivateSet, libs, "g_static_private_set") | |
| 2410 | + | ||
| 2411 | + | core.PuregoSafeRegister(&xStaticRWLockFree, libs, "g_static_rw_lock_free") | |
| 2412 | + | core.PuregoSafeRegister(&xStaticRWLockInit, libs, "g_static_rw_lock_init") | |
| 2413 | + | core.PuregoSafeRegister(&xStaticRWLockReaderLock, libs, "g_static_rw_lock_reader_lock") | |
| 2414 | + | core.PuregoSafeRegister(&xStaticRWLockReaderTrylock, libs, "g_static_rw_lock_reader_trylock") | |
| 2415 | + | core.PuregoSafeRegister(&xStaticRWLockReaderUnlock, libs, "g_static_rw_lock_reader_unlock") | |
| 2416 | + | core.PuregoSafeRegister(&xStaticRWLockWriterLock, libs, "g_static_rw_lock_writer_lock") | |
| 2417 | + | core.PuregoSafeRegister(&xStaticRWLockWriterTrylock, libs, "g_static_rw_lock_writer_trylock") | |
| 2418 | + | core.PuregoSafeRegister(&xStaticRWLockWriterUnlock, libs, "g_static_rw_lock_writer_unlock") | |
| 2419 | + | ||
| 2420 | + | core.PuregoSafeRegister(&xStaticRecMutexFree, libs, "g_static_rec_mutex_free") | |
| 2421 | + | core.PuregoSafeRegister(&xStaticRecMutexInit, libs, "g_static_rec_mutex_init") | |
| 2422 | + | core.PuregoSafeRegister(&xStaticRecMutexLock, libs, "g_static_rec_mutex_lock") | |
| 2423 | + | core.PuregoSafeRegister(&xStaticRecMutexLockFull, libs, "g_static_rec_mutex_lock_full") | |
| 2424 | + | core.PuregoSafeRegister(&xStaticRecMutexTrylock, libs, "g_static_rec_mutex_trylock") | |
| 2425 | + | core.PuregoSafeRegister(&xStaticRecMutexUnlock, libs, "g_static_rec_mutex_unlock") | |
| 2426 | + | core.PuregoSafeRegister(&xStaticRecMutexUnlockFull, libs, "g_static_rec_mutex_unlock_full") | |
| 2427 | + | ||
| 2428 | + | core.PuregoSafeRegister(&xThreadGLibType, libs, "g_thread_get_type") | |
| 2429 | + | ||
| 2430 | + | core.PuregoSafeRegister(&xNewThread, libs, "g_thread_new") | |
| 2431 | + | core.PuregoSafeRegister(&xThreadTryNew, libs, "g_thread_try_new") | |
| 2432 | + | ||
| 2433 | + | core.PuregoSafeRegister(&xThreadGetName, libs, "g_thread_get_name") | |
| 2434 | + | core.PuregoSafeRegister(&xThreadJoin, libs, "g_thread_join") | |
| 2435 | + | core.PuregoSafeRegister(&xThreadRef, libs, "g_thread_ref") | |
| 2436 | + | core.PuregoSafeRegister(&xThreadSetPriority, libs, "g_thread_set_priority") | |
| 2437 | + | core.PuregoSafeRegister(&xThreadUnref, libs, "g_thread_unref") | |
| 2487 | 2438 | } | |
| @@ -108,8 +108,6 @@ var xCondBroadcast func(uintptr) | |||||
| 108 | // It is good practice to lock the same mutex as the waiting threads | 108 | // It is good practice to lock the same mutex as the waiting threads | ||
| 109 | // while calling this function, though not required. | 109 | // while calling this function, though not required. | ||
| 110 | func (x *Cond) Broadcast() { | 110 | func (x *Cond) Broadcast() { | ||
| 111 | - | core.LazyRegister(&xCondBroadcast, "GLIB", "g_cond_broadcast", false) | |||
| 112 | - | ||||
| 113 | xCondBroadcast(x.GoPointer()) | 111 | xCondBroadcast(x.GoPointer()) | ||
| 114 | } | 112 | } | ||
| 115 | 113 | ||||
| @@ -123,8 +121,6 @@ var xCondClear func(uintptr) | |||||
| 123 | // Calling g_cond_clear() for a #GCond on which threads are | 121 | // Calling g_cond_clear() for a #GCond on which threads are | ||
| 124 | // blocking leads to undefined behaviour. | 122 | // blocking leads to undefined behaviour. | ||
| 125 | func (x *Cond) Clear() { | 123 | func (x *Cond) Clear() { | ||
| 126 | - | core.LazyRegister(&xCondClear, "GLIB", "g_cond_clear", false) | |||
| 127 | - | ||||
| 128 | xCondClear(x.GoPointer()) | 124 | xCondClear(x.GoPointer()) | ||
| 129 | } | 125 | } | ||
| 130 | 126 | ||||
| @@ -135,8 +131,6 @@ var xCondFree func(uintptr) | |||||
| 135 | // Calling g_cond_free() for a #GCond on which threads are | 131 | // Calling g_cond_free() for a #GCond on which threads are | ||
| 136 | // blocking leads to undefined behaviour. | 132 | // blocking leads to undefined behaviour. | ||
| 137 | func (x *Cond) Free() { | 133 | func (x *Cond) Free() { | ||
| 138 | - | core.LazyRegister(&xCondFree, "GLIB", "g_cond_free", false) | |||
| 139 | - | ||||
| 140 | xCondFree(x.GoPointer()) | 134 | xCondFree(x.GoPointer()) | ||
| 141 | } | 135 | } | ||
| 142 | 136 | ||||
| @@ -154,8 +148,6 @@ var xCondInit func(uintptr) | |||||
| 154 | // Calling g_cond_init() on an already-initialised #GCond leads | 148 | // Calling g_cond_init() on an already-initialised #GCond leads | ||
| 155 | // to undefined behaviour. | 149 | // to undefined behaviour. | ||
| 156 | func (x *Cond) Init() { | 150 | func (x *Cond) Init() { | ||
| 157 | - | core.LazyRegister(&xCondInit, "GLIB", "g_cond_init", false) | |||
| 158 | - | ||||
| 159 | xCondInit(x.GoPointer()) | 151 | xCondInit(x.GoPointer()) | ||
| 160 | } | 152 | } | ||
| 161 | 153 | ||||
| @@ -166,8 +158,6 @@ var xCondSignal func(uintptr) | |||||
| 166 | // It is good practice to hold the same lock as the waiting thread | 158 | // It is good practice to hold the same lock as the waiting thread | ||
| 167 | // while calling this function, though not required. | 159 | // while calling this function, though not required. | ||
| 168 | func (x *Cond) Signal() { | 160 | func (x *Cond) Signal() { | ||
| 169 | - | core.LazyRegister(&xCondSignal, "GLIB", "g_cond_signal", false) | |||
| 170 | - | ||||
| 171 | xCondSignal(x.GoPointer()) | 161 | xCondSignal(x.GoPointer()) | ||
| 172 | } | 162 | } | ||
| 173 | 163 | ||||
| @@ -185,8 +175,6 @@ var xCondTimedWait func(uintptr, *Mutex, *TimeVal) bool | |||||
| 185 | // To easily calculate @abs_time a combination of g_get_real_time() | 175 | // To easily calculate @abs_time a combination of g_get_real_time() | ||
| 186 | // and g_time_val_add() can be used. | 176 | // and g_time_val_add() can be used. | ||
| 187 | func (x *Cond) TimedWait(MutexVar *Mutex, AbsTimeVar *TimeVal) bool { | 177 | func (x *Cond) TimedWait(MutexVar *Mutex, AbsTimeVar *TimeVal) bool { | ||
| 188 | - | core.LazyRegister(&xCondTimedWait, "GLIB", "g_cond_timed_wait", false) | |||
| 189 | - | ||||
| 190 | cret := xCondTimedWait(x.GoPointer(), MutexVar, AbsTimeVar) | 178 | cret := xCondTimedWait(x.GoPointer(), MutexVar, AbsTimeVar) | ||
| 191 | return cret | 179 | return cret | ||
| 192 | } | 180 | } | ||
| @@ -208,8 +196,6 @@ var xCondWait func(uintptr, *Mutex) | |||||
| 208 | // For this reason, g_cond_wait() must always be used in a loop. See | 196 | // For this reason, g_cond_wait() must always be used in a loop. See | ||
| 209 | // the documentation for #GCond for a complete example. | 197 | // the documentation for #GCond for a complete example. | ||
| 210 | func (x *Cond) Wait(MutexVar *Mutex) { | 198 | func (x *Cond) Wait(MutexVar *Mutex) { | ||
| 211 | - | core.LazyRegister(&xCondWait, "GLIB", "g_cond_wait", false) | |||
| 212 | - | ||||
| 213 | xCondWait(x.GoPointer(), MutexVar) | 199 | xCondWait(x.GoPointer(), MutexVar) | ||
| 214 | } | 200 | } | ||
| 215 | 201 | ||||
| @@ -266,8 +252,6 @@ var xCondWaitUntil func(uintptr, *Mutex, int64) bool | |||||
| 266 | // have to start over waiting again (which would lead to a total wait | 252 | // have to start over waiting again (which would lead to a total wait | ||
| 267 | // time of more than 5 seconds). | 253 | // time of more than 5 seconds). | ||
| 268 | func (x *Cond) WaitUntil(MutexVar *Mutex, EndTimeVar int64) bool { | 254 | func (x *Cond) WaitUntil(MutexVar *Mutex, EndTimeVar int64) bool { | ||
| 269 | - | core.LazyRegister(&xCondWaitUntil, "GLIB", "g_cond_wait_until", false) | |||
| 270 | - | ||||
| 271 | cret := xCondWaitUntil(x.GoPointer(), MutexVar, EndTimeVar) | 255 | cret := xCondWaitUntil(x.GoPointer(), MutexVar, EndTimeVar) | ||
| 272 | return cret | 256 | return cret | ||
| 273 | } | 257 | } | ||
| @@ -298,8 +282,6 @@ func OnceNewFromInternalPtr(ptr uintptr) *Once { | |||||
| 298 | var xOnceImpl func(uintptr, uintptr, uintptr) uintptr | 282 | var xOnceImpl func(uintptr, uintptr, uintptr) uintptr | ||
| 299 | 283 | ||||
| 300 | func (x *Once) Impl(FuncVar *ThreadFunc, ArgVar uintptr) uintptr { | 284 | func (x *Once) Impl(FuncVar *ThreadFunc, ArgVar uintptr) uintptr { | ||
| 301 | - | core.LazyRegister(&xOnceImpl, "GLIB", "g_once_impl", false) | |||
| 302 | - | ||||
| 303 | cret := xOnceImpl(x.GoPointer(), NewCallback(FuncVar), ArgVar) | 285 | cret := xOnceImpl(x.GoPointer(), NewCallback(FuncVar), ArgVar) | ||
| 304 | return cret | 286 | return cret | ||
| 305 | } | 287 | } | ||
| @@ -351,8 +333,6 @@ var xPrivateGet func(uintptr) uintptr | |||||
| 351 | // Values are never copied between threads (when a new thread is | 333 | // Values are never copied between threads (when a new thread is | ||
| 352 | // created, for example). | 334 | // created, for example). | ||
| 353 | func (x *Private) Get() uintptr { | 335 | func (x *Private) Get() uintptr { | ||
| 354 | - | core.LazyRegister(&xPrivateGet, "GLIB", "g_private_get", false) | |||
| 355 | - | ||||
| 356 | cret := xPrivateGet(x.GoPointer()) | 336 | cret := xPrivateGet(x.GoPointer()) | ||
| 357 | return cret | 337 | return cret | ||
| 358 | } | 338 | } | ||
| @@ -366,8 +346,6 @@ var xPrivateReplace func(uintptr, uintptr) | |||||
| 366 | // the previous value was non-%NULL then the #GDestroyNotify handler for | 346 | // the previous value was non-%NULL then the #GDestroyNotify handler for | ||
| 367 | // @key is run on it. | 347 | // @key is run on it. | ||
| 368 | func (x *Private) Replace(ValueVar uintptr) { | 348 | func (x *Private) Replace(ValueVar uintptr) { | ||
| 369 | - | core.LazyRegister(&xPrivateReplace, "GLIB", "g_private_replace", false) | |||
| 370 | - | ||||
| 371 | xPrivateReplace(x.GoPointer(), ValueVar) | 349 | xPrivateReplace(x.GoPointer(), ValueVar) | ||
| 372 | } | 350 | } | ||
| 373 | 351 | ||||
| @@ -379,8 +357,6 @@ var xPrivateSet func(uintptr, uintptr) | |||||
| 379 | // This function differs from g_private_replace() in the following way: | 357 | // This function differs from g_private_replace() in the following way: | ||
| 380 | // the #GDestroyNotify for @key is not called on the old value. | 358 | // the #GDestroyNotify for @key is not called on the old value. | ||
| 381 | func (x *Private) Set(ValueVar uintptr) { | 359 | func (x *Private) Set(ValueVar uintptr) { | ||
| 382 | - | core.LazyRegister(&xPrivateSet, "GLIB", "g_private_set", false) | |||
| 383 | - | ||||
| 384 | xPrivateSet(x.GoPointer(), ValueVar) | 360 | xPrivateSet(x.GoPointer(), ValueVar) | ||
| 385 | } | 361 | } | ||
| 386 | 362 | ||||
| @@ -479,8 +455,6 @@ var xRWLockClear func(uintptr) | |||||
| 479 | // Calling g_rw_lock_clear() when any thread holds the lock | 455 | // Calling g_rw_lock_clear() when any thread holds the lock | ||
| 480 | // leads to undefined behaviour. | 456 | // leads to undefined behaviour. | ||
| 481 | func (x *RWLock) Clear() { | 457 | func (x *RWLock) Clear() { | ||
| 482 | - | core.LazyRegister(&xRWLockClear, "GLIB", "g_rw_lock_clear", false) | |||
| 483 | - | ||||
| 484 | xRWLockClear(x.GoPointer()) | 458 | xRWLockClear(x.GoPointer()) | ||
| 485 | } | 459 | } | ||
| 486 | 460 | ||||
| @@ -512,8 +486,6 @@ var xRWLockInit func(uintptr) | |||||
| 512 | // Calling g_rw_lock_init() on an already initialized #GRWLock leads | 486 | // Calling g_rw_lock_init() on an already initialized #GRWLock leads | ||
| 513 | // to undefined behaviour. | 487 | // to undefined behaviour. | ||
| 514 | func (x *RWLock) Init() { | 488 | func (x *RWLock) Init() { | ||
| 515 | - | core.LazyRegister(&xRWLockInit, "GLIB", "g_rw_lock_init", false) | |||
| 516 | - | ||||
| 517 | xRWLockInit(x.GoPointer()) | 489 | xRWLockInit(x.GoPointer()) | ||
| 518 | } | 490 | } | ||
| 519 | 491 | ||||
| @@ -535,8 +507,6 @@ var xRWLockReaderLock func(uintptr) | |||||
| 535 | // held on the same lock simultaneously. If the limit is hit, | 507 | // held on the same lock simultaneously. If the limit is hit, | ||
| 536 | // or if a deadlock is detected, a critical warning will be emitted. | 508 | // or if a deadlock is detected, a critical warning will be emitted. | ||
| 537 | func (x *RWLock) ReaderLock() { | 509 | func (x *RWLock) ReaderLock() { | ||
| 538 | - | core.LazyRegister(&xRWLockReaderLock, "GLIB", "g_rw_lock_reader_lock", false) | |||
| 539 | - | ||||
| 540 | xRWLockReaderLock(x.GoPointer()) | 510 | xRWLockReaderLock(x.GoPointer()) | ||
| 541 | } | 511 | } | ||
| 542 | 512 | ||||
| @@ -546,8 +516,6 @@ var xRWLockReaderTrylock func(uintptr) bool | |||||
| 546 | // the read lock was successfully obtained. Otherwise it | 516 | // the read lock was successfully obtained. Otherwise it | ||
| 547 | // returns %FALSE. | 517 | // returns %FALSE. | ||
| 548 | func (x *RWLock) ReaderTrylock() bool { | 518 | func (x *RWLock) ReaderTrylock() bool { | ||
| 549 | - | core.LazyRegister(&xRWLockReaderTrylock, "GLIB", "g_rw_lock_reader_trylock", false) | |||
| 550 | - | ||||
| 551 | cret := xRWLockReaderTrylock(x.GoPointer()) | 519 | cret := xRWLockReaderTrylock(x.GoPointer()) | ||
| 552 | return cret | 520 | return cret | ||
| 553 | } | 521 | } | ||
| @@ -559,8 +527,6 @@ var xRWLockReaderUnlock func(uintptr) | |||||
| 559 | // Calling g_rw_lock_reader_unlock() on a lock that is not held | 527 | // Calling g_rw_lock_reader_unlock() on a lock that is not held | ||
| 560 | // by the current thread leads to undefined behaviour. | 528 | // by the current thread leads to undefined behaviour. | ||
| 561 | func (x *RWLock) ReaderUnlock() { | 529 | func (x *RWLock) ReaderUnlock() { | ||
| 562 | - | core.LazyRegister(&xRWLockReaderUnlock, "GLIB", "g_rw_lock_reader_unlock", false) | |||
| 563 | - | ||||
| 564 | xRWLockReaderUnlock(x.GoPointer()) | 530 | xRWLockReaderUnlock(x.GoPointer()) | ||
| 565 | } | 531 | } | ||
| 566 | 532 | ||||
| @@ -573,8 +539,6 @@ var xRWLockWriterLock func(uintptr) | |||||
| 573 | // Calling g_rw_lock_writer_lock() while the current thread already | 539 | // Calling g_rw_lock_writer_lock() while the current thread already | ||
| 574 | // owns a read or write lock on @rw_lock leads to undefined behaviour. | 540 | // owns a read or write lock on @rw_lock leads to undefined behaviour. | ||
| 575 | func (x *RWLock) WriterLock() { | 541 | func (x *RWLock) WriterLock() { | ||
| 576 | - | core.LazyRegister(&xRWLockWriterLock, "GLIB", "g_rw_lock_writer_lock", false) | |||
| 577 | - | ||||
| 578 | xRWLockWriterLock(x.GoPointer()) | 542 | xRWLockWriterLock(x.GoPointer()) | ||
| 579 | } | 543 | } | ||
| 580 | 544 | ||||
| @@ -585,8 +549,6 @@ var xRWLockWriterTrylock func(uintptr) bool | |||||
| 585 | // returns %FALSE. | 549 | // returns %FALSE. | ||
| 586 | // Otherwise it locks @rw_lock and returns %TRUE. | 550 | // Otherwise it locks @rw_lock and returns %TRUE. | ||
| 587 | func (x *RWLock) WriterTrylock() bool { | 551 | func (x *RWLock) WriterTrylock() bool { | ||
| 588 | - | core.LazyRegister(&xRWLockWriterTrylock, "GLIB", "g_rw_lock_writer_trylock", false) | |||
| 589 | - | ||||
| 590 | cret := xRWLockWriterTrylock(x.GoPointer()) | 552 | cret := xRWLockWriterTrylock(x.GoPointer()) | ||
| 591 | return cret | 553 | return cret | ||
| 592 | } | 554 | } | ||
| @@ -598,8 +560,6 @@ var xRWLockWriterUnlock func(uintptr) | |||||
| 598 | // Calling g_rw_lock_writer_unlock() on a lock that is not held | 560 | // Calling g_rw_lock_writer_unlock() on a lock that is not held | ||
| 599 | // by the current thread leads to undefined behaviour. | 561 | // by the current thread leads to undefined behaviour. | ||
| 600 | func (x *RWLock) WriterUnlock() { | 562 | func (x *RWLock) WriterUnlock() { | ||
| 601 | - | core.LazyRegister(&xRWLockWriterUnlock, "GLIB", "g_rw_lock_writer_unlock", false) | |||
| 602 | - | ||||
| 603 | xRWLockWriterUnlock(x.GoPointer()) | 563 | xRWLockWriterUnlock(x.GoPointer()) | ||
| 604 | } | 564 | } | ||
| 605 | 565 | ||||
| @@ -646,8 +606,6 @@ var xRecMutexClear func(uintptr) | |||||
| 646 | // Calling g_rec_mutex_clear() on a locked recursive mutex leads | 606 | // Calling g_rec_mutex_clear() on a locked recursive mutex leads | ||
| 647 | // to undefined behaviour. | 607 | // to undefined behaviour. | ||
| 648 | func (x *RecMutex) Clear() { | 608 | func (x *RecMutex) Clear() { | ||
| 649 | - | core.LazyRegister(&xRecMutexClear, "GLIB", "g_rec_mutex_clear", false) | |||
| 650 | - | ||||
| 651 | xRecMutexClear(x.GoPointer()) | 609 | xRecMutexClear(x.GoPointer()) | ||
| 652 | } | 610 | } | ||
| 653 | 611 | ||||
| @@ -681,8 +639,6 @@ var xRecMutexInit func(uintptr) | |||||
| 681 | // To undo the effect of g_rec_mutex_init() when a recursive mutex | 639 | // To undo the effect of g_rec_mutex_init() when a recursive mutex | ||
| 682 | // is no longer needed, use g_rec_mutex_clear(). | 640 | // is no longer needed, use g_rec_mutex_clear(). | ||
| 683 | func (x *RecMutex) Init() { | 641 | func (x *RecMutex) Init() { | ||
| 684 | - | core.LazyRegister(&xRecMutexInit, "GLIB", "g_rec_mutex_init", false) | |||
| 685 | - | ||||
| 686 | xRecMutexInit(x.GoPointer()) | 642 | xRecMutexInit(x.GoPointer()) | ||
| 687 | } | 643 | } | ||
| 688 | 644 | ||||
| @@ -695,8 +651,6 @@ var xRecMutexLock func(uintptr) | |||||
| 695 | // The mutex will only become available again when it is unlocked | 651 | // The mutex will only become available again when it is unlocked | ||
| 696 | // as many times as it has been locked. | 652 | // as many times as it has been locked. | ||
| 697 | func (x *RecMutex) Lock() { | 653 | func (x *RecMutex) Lock() { | ||
| 698 | - | core.LazyRegister(&xRecMutexLock, "GLIB", "g_rec_mutex_lock", false) | |||
| 699 | - | ||||
| 700 | xRecMutexLock(x.GoPointer()) | 654 | xRecMutexLock(x.GoPointer()) | ||
| 701 | } | 655 | } | ||
| 702 | 656 | ||||
| @@ -706,8 +660,6 @@ var xRecMutexTrylock func(uintptr) bool | |||||
| 706 | // by another thread, it immediately returns %FALSE. Otherwise | 660 | // by another thread, it immediately returns %FALSE. Otherwise | ||
| 707 | // it locks @rec_mutex and returns %TRUE. | 661 | // it locks @rec_mutex and returns %TRUE. | ||
| 708 | func (x *RecMutex) Trylock() bool { | 662 | func (x *RecMutex) Trylock() bool { | ||
| 709 | - | core.LazyRegister(&xRecMutexTrylock, "GLIB", "g_rec_mutex_trylock", false) | |||
| 710 | - | ||||
| 711 | cret := xRecMutexTrylock(x.GoPointer()) | 663 | cret := xRecMutexTrylock(x.GoPointer()) | ||
| 712 | return cret | 664 | return cret | ||
| 713 | } | 665 | } | ||
| @@ -721,8 +673,6 @@ var xRecMutexUnlock func(uintptr) | |||||
| 721 | // Calling g_rec_mutex_unlock() on a recursive mutex that is not | 673 | // Calling g_rec_mutex_unlock() on a recursive mutex that is not | ||
| 722 | // locked by the current thread leads to undefined behaviour. | 674 | // locked by the current thread leads to undefined behaviour. | ||
| 723 | func (x *RecMutex) Unlock() { | 675 | func (x *RecMutex) Unlock() { | ||
| 724 | - | core.LazyRegister(&xRecMutexUnlock, "GLIB", "g_rec_mutex_unlock", false) | |||
| 725 | - | ||||
| 726 | xRecMutexUnlock(x.GoPointer()) | 676 | xRecMutexUnlock(x.GoPointer()) | ||
| 727 | } | 677 | } | ||
| 728 | 678 | ||||
| @@ -804,16 +754,12 @@ var xStaticMutexFree func(uintptr) | |||||
| 804 | // Calling g_static_mutex_free() on a locked mutex may result in | 754 | // Calling g_static_mutex_free() on a locked mutex may result in | ||
| 805 | // undefined behaviour. | 755 | // undefined behaviour. | ||
| 806 | func (x *StaticMutex) Free() { | 756 | func (x *StaticMutex) Free() { | ||
| 807 | - | core.LazyRegister(&xStaticMutexFree, "GLIB", "g_static_mutex_free", false) | |||
| 808 | - | ||||
| 809 | xStaticMutexFree(x.GoPointer()) | 757 | xStaticMutexFree(x.GoPointer()) | ||
| 810 | } | 758 | } | ||
| 811 | 759 | ||||
| 812 | var xStaticMutexGetMutexImpl func(uintptr) *Mutex | 760 | var xStaticMutexGetMutexImpl func(uintptr) *Mutex | ||
| 813 | 761 | ||||
| 814 | func (x *StaticMutex) GetMutexImpl() *Mutex { | 762 | func (x *StaticMutex) GetMutexImpl() *Mutex { | ||
| 815 | - | core.LazyRegister(&xStaticMutexGetMutexImpl, "GLIB", "g_static_mutex_get_mutex_impl", false) | |||
| 816 | - | ||||
| 817 | cret := xStaticMutexGetMutexImpl(x.GoPointer()) | 763 | cret := xStaticMutexGetMutexImpl(x.GoPointer()) | ||
| 818 | return cret | 764 | return cret | ||
| 819 | } | 765 | } | ||
| @@ -823,8 +769,6 @@ var xStaticMutexInit func(uintptr) | |||||
| 823 | // Initializes @mutex. | 769 | // Initializes @mutex. | ||
| 824 | // Alternatively you can initialize it with %G_STATIC_MUTEX_INIT. | 770 | // Alternatively you can initialize it with %G_STATIC_MUTEX_INIT. | ||
| 825 | func (x *StaticMutex) Init() { | 771 | func (x *StaticMutex) Init() { | ||
| 826 | - | core.LazyRegister(&xStaticMutexInit, "GLIB", "g_static_mutex_init", false) | |||
| 827 | - | ||||
| 828 | xStaticMutexInit(x.GoPointer()) | 772 | xStaticMutexInit(x.GoPointer()) | ||
| 829 | } | 773 | } | ||
| 830 | 774 | ||||
| @@ -882,8 +826,6 @@ var xStaticPrivateFree func(uintptr) | |||||
| 882 | // a #GStaticPrivate as a member of a structure and the structure is | 826 | // a #GStaticPrivate as a member of a structure and the structure is | ||
| 883 | // freed, you should also free the #GStaticPrivate. | 827 | // freed, you should also free the #GStaticPrivate. | ||
| 884 | func (x *StaticPrivate) Free() { | 828 | func (x *StaticPrivate) Free() { | ||
| 885 | - | core.LazyRegister(&xStaticPrivateFree, "GLIB", "g_static_private_free", false) | |||
| 886 | - | ||||
| 887 | xStaticPrivateFree(x.GoPointer()) | 829 | xStaticPrivateFree(x.GoPointer()) | ||
| 888 | } | 830 | } | ||
| 889 | 831 | ||||
| @@ -893,8 +835,6 @@ var xStaticPrivateGet func(uintptr) uintptr | |||||
| 893 | // | 835 | // | ||
| 894 | // This function works even if g_thread_init() has not yet been called. | 836 | // This function works even if g_thread_init() has not yet been called. | ||
| 895 | func (x *StaticPrivate) Get() uintptr { | 837 | func (x *StaticPrivate) Get() uintptr { | ||
| 896 | - | core.LazyRegister(&xStaticPrivateGet, "GLIB", "g_static_private_get", false) | |||
| 897 | - | ||||
| 898 | cret := xStaticPrivateGet(x.GoPointer()) | 838 | cret := xStaticPrivateGet(x.GoPointer()) | ||
| 899 | return cret | 839 | return cret | ||
| 900 | } | 840 | } | ||
| @@ -904,8 +844,6 @@ var xStaticPrivateInit func(uintptr) | |||||
| 904 | // Initializes @private_key. Alternatively you can initialize it with | 844 | // Initializes @private_key. Alternatively you can initialize it with | ||
| 905 | // %G_STATIC_PRIVATE_INIT. | 845 | // %G_STATIC_PRIVATE_INIT. | ||
| 906 | func (x *StaticPrivate) Init() { | 846 | func (x *StaticPrivate) Init() { | ||
| 907 | - | core.LazyRegister(&xStaticPrivateInit, "GLIB", "g_static_private_init", false) | |||
| 908 | - | ||||
| 909 | xStaticPrivateInit(x.GoPointer()) | 847 | xStaticPrivateInit(x.GoPointer()) | ||
| 910 | } | 848 | } | ||
| 911 | 849 | ||||
| @@ -923,8 +861,6 @@ var xStaticPrivateSet func(uintptr, uintptr, uintptr) | |||||
| 923 | // | 861 | // | ||
| 924 | // @notify is used quite differently from @destructor in g_private_new(). | 862 | // @notify is used quite differently from @destructor in g_private_new(). | ||
| 925 | func (x *StaticPrivate) Set(DataVar uintptr, NotifyVar *DestroyNotify) { | 863 | func (x *StaticPrivate) Set(DataVar uintptr, NotifyVar *DestroyNotify) { | ||
| 926 | - | core.LazyRegister(&xStaticPrivateSet, "GLIB", "g_static_private_set", false) | |||
| 927 | - | ||||
| 928 | xStaticPrivateSet(x.GoPointer(), DataVar, NewCallbackNullable(NotifyVar)) | 864 | xStaticPrivateSet(x.GoPointer(), DataVar, NewCallbackNullable(NotifyVar)) | ||
| 929 | } | 865 | } | ||
| 930 | 866 | ||||
| @@ -1041,8 +977,6 @@ var xStaticRWLockFree func(uintptr) | |||||
| 1041 | // a #GStaticRWLock as a member of a structure, and the structure is | 977 | // a #GStaticRWLock as a member of a structure, and the structure is | ||
| 1042 | // freed, you should also free the #GStaticRWLock. | 978 | // freed, you should also free the #GStaticRWLock. | ||
| 1043 | func (x *StaticRWLock) Free() { | 979 | func (x *StaticRWLock) Free() { | ||
| 1044 | - | core.LazyRegister(&xStaticRWLockFree, "GLIB", "g_static_rw_lock_free", false) | |||
| 1045 | - | ||||
| 1046 | xStaticRWLockFree(x.GoPointer()) | 980 | xStaticRWLockFree(x.GoPointer()) | ||
| 1047 | } | 981 | } | ||
| 1048 | 982 | ||||
| @@ -1052,8 +986,6 @@ var xStaticRWLockInit func(uintptr) | |||||
| 1052 | // can be used. Alternatively you can initialize it with | 986 | // can be used. Alternatively you can initialize it with | ||
| 1053 | // %G_STATIC_RW_LOCK_INIT. | 987 | // %G_STATIC_RW_LOCK_INIT. | ||
| 1054 | func (x *StaticRWLock) Init() { | 988 | func (x *StaticRWLock) Init() { | ||
| 1055 | - | core.LazyRegister(&xStaticRWLockInit, "GLIB", "g_static_rw_lock_init", false) | |||
| 1056 | - | ||||
| 1057 | xStaticRWLockInit(x.GoPointer()) | 989 | xStaticRWLockInit(x.GoPointer()) | ||
| 1058 | } | 990 | } | ||
| 1059 | 991 | ||||
| @@ -1071,8 +1003,6 @@ var xStaticRWLockReaderLock func(uintptr) | |||||
| 1071 | // recursively lock for reading, but that can result in a deadlock, due | 1003 | // recursively lock for reading, but that can result in a deadlock, due | ||
| 1072 | // to writer preference. | 1004 | // to writer preference. | ||
| 1073 | func (x *StaticRWLock) ReaderLock() { | 1005 | func (x *StaticRWLock) ReaderLock() { | ||
| 1074 | - | core.LazyRegister(&xStaticRWLockReaderLock, "GLIB", "g_static_rw_lock_reader_lock", false) | |||
| 1075 | - | ||||
| 1076 | xStaticRWLockReaderLock(x.GoPointer()) | 1006 | xStaticRWLockReaderLock(x.GoPointer()) | ||
| 1077 | } | 1007 | } | ||
| 1078 | 1008 | ||||
| @@ -1084,8 +1014,6 @@ var xStaticRWLockReaderTrylock func(uintptr) bool | |||||
| 1084 | // @lock for reading and returns %TRUE. This lock has to be unlocked by | 1014 | // @lock for reading and returns %TRUE. This lock has to be unlocked by | ||
| 1085 | // g_static_rw_lock_reader_unlock(). | 1015 | // g_static_rw_lock_reader_unlock(). | ||
| 1086 | func (x *StaticRWLock) ReaderTrylock() bool { | 1016 | func (x *StaticRWLock) ReaderTrylock() bool { | ||
| 1087 | - | core.LazyRegister(&xStaticRWLockReaderTrylock, "GLIB", "g_static_rw_lock_reader_trylock", false) | |||
| 1088 | - | ||||
| 1089 | cret := xStaticRWLockReaderTrylock(x.GoPointer()) | 1017 | cret := xStaticRWLockReaderTrylock(x.GoPointer()) | ||
| 1090 | return cret | 1018 | return cret | ||
| 1091 | } | 1019 | } | ||
| @@ -1096,8 +1024,6 @@ var xStaticRWLockReaderUnlock func(uintptr) | |||||
| 1096 | // locks for reading have been unlocked, the waiting thread is woken up | 1024 | // locks for reading have been unlocked, the waiting thread is woken up | ||
| 1097 | // and can lock @lock for writing. | 1025 | // and can lock @lock for writing. | ||
| 1098 | func (x *StaticRWLock) ReaderUnlock() { | 1026 | func (x *StaticRWLock) ReaderUnlock() { | ||
| 1099 | - | core.LazyRegister(&xStaticRWLockReaderUnlock, "GLIB", "g_static_rw_lock_reader_unlock", false) | |||
| 1100 | - | ||||
| 1101 | xStaticRWLockReaderUnlock(x.GoPointer()) | 1027 | xStaticRWLockReaderUnlock(x.GoPointer()) | ||
| 1102 | } | 1028 | } | ||
| 1103 | 1029 | ||||
| @@ -1111,8 +1037,6 @@ var xStaticRWLockWriterLock func(uintptr) | |||||
| 1111 | // @lock (neither for reading nor writing). This lock has to be | 1037 | // @lock (neither for reading nor writing). This lock has to be | ||
| 1112 | // unlocked by g_static_rw_lock_writer_unlock(). | 1038 | // unlocked by g_static_rw_lock_writer_unlock(). | ||
| 1113 | func (x *StaticRWLock) WriterLock() { | 1039 | func (x *StaticRWLock) WriterLock() { | ||
| 1114 | - | core.LazyRegister(&xStaticRWLockWriterLock, "GLIB", "g_static_rw_lock_writer_lock", false) | |||
| 1115 | - | ||||
| 1116 | xStaticRWLockWriterLock(x.GoPointer()) | 1040 | xStaticRWLockWriterLock(x.GoPointer()) | ||
| 1117 | } | 1041 | } | ||
| 1118 | 1042 | ||||
| @@ -1123,8 +1047,6 @@ var xStaticRWLockWriterTrylock func(uintptr) bool | |||||
| 1123 | // %FALSE. Otherwise it locks @lock for writing and returns %TRUE. This | 1047 | // %FALSE. Otherwise it locks @lock for writing and returns %TRUE. This | ||
| 1124 | // lock has to be unlocked by g_static_rw_lock_writer_unlock(). | 1048 | // lock has to be unlocked by g_static_rw_lock_writer_unlock(). | ||
| 1125 | func (x *StaticRWLock) WriterTrylock() bool { | 1049 | func (x *StaticRWLock) WriterTrylock() bool { | ||
| 1126 | - | core.LazyRegister(&xStaticRWLockWriterTrylock, "GLIB", "g_static_rw_lock_writer_trylock", false) | |||
| 1127 | - | ||||
| 1128 | cret := xStaticRWLockWriterTrylock(x.GoPointer()) | 1050 | cret := xStaticRWLockWriterTrylock(x.GoPointer()) | ||
| 1129 | return cret | 1051 | return cret | ||
| 1130 | } | 1052 | } | ||
| @@ -1138,8 +1060,6 @@ var xStaticRWLockWriterUnlock func(uintptr) | |||||
| 1138 | // lock @lock for reading, the waiting threads are woken up and can | 1060 | // lock @lock for reading, the waiting threads are woken up and can | ||
| 1139 | // lock @lock for reading. | 1061 | // lock @lock for reading. | ||
| 1140 | func (x *StaticRWLock) WriterUnlock() { | 1062 | func (x *StaticRWLock) WriterUnlock() { | ||
| 1141 | - | core.LazyRegister(&xStaticRWLockWriterUnlock, "GLIB", "g_static_rw_lock_writer_unlock", false) | |||
| 1142 | - | ||||
| 1143 | xStaticRWLockWriterUnlock(x.GoPointer()) | 1063 | xStaticRWLockWriterUnlock(x.GoPointer()) | ||
| 1144 | } | 1064 | } | ||
| 1145 | 1065 | ||||
| @@ -1189,8 +1109,6 @@ var xStaticRecMutexFree func(uintptr) | |||||
| 1189 | // a #GStaticRecMutex as a member of a structure and the structure is | 1109 | // a #GStaticRecMutex as a member of a structure and the structure is | ||
| 1190 | // freed, you should also free the #GStaticRecMutex. | 1110 | // freed, you should also free the #GStaticRecMutex. | ||
| 1191 | func (x *StaticRecMutex) Free() { | 1111 | func (x *StaticRecMutex) Free() { | ||
| 1192 | - | core.LazyRegister(&xStaticRecMutexFree, "GLIB", "g_static_rec_mutex_free", false) | |||
| 1193 | - | ||||
| 1194 | xStaticRecMutexFree(x.GoPointer()) | 1112 | xStaticRecMutexFree(x.GoPointer()) | ||
| 1195 | } | 1113 | } | ||
| 1196 | 1114 | ||||
| @@ -1200,8 +1118,6 @@ var xStaticRecMutexInit func(uintptr) | |||||
| 1200 | // can be used. Alternatively you can initialize it with | 1118 | // can be used. Alternatively you can initialize it with | ||
| 1201 | // %G_STATIC_REC_MUTEX_INIT. | 1119 | // %G_STATIC_REC_MUTEX_INIT. | ||
| 1202 | func (x *StaticRecMutex) Init() { | 1120 | func (x *StaticRecMutex) Init() { | ||
| 1203 | - | core.LazyRegister(&xStaticRecMutexInit, "GLIB", "g_static_rec_mutex_init", false) | |||
| 1204 | - | ||||
| 1205 | xStaticRecMutexInit(x.GoPointer()) | 1121 | xStaticRecMutexInit(x.GoPointer()) | ||
| 1206 | } | 1122 | } | ||
| 1207 | 1123 | ||||
| @@ -1212,8 +1128,6 @@ var xStaticRecMutexLock func(uintptr) | |||||
| 1212 | // thread. If @mutex is already locked by the calling thread, this | 1128 | // thread. If @mutex is already locked by the calling thread, this | ||
| 1213 | // functions increases the depth of @mutex and returns immediately. | 1129 | // functions increases the depth of @mutex and returns immediately. | ||
| 1214 | func (x *StaticRecMutex) Lock() { | 1130 | func (x *StaticRecMutex) Lock() { | ||
| 1215 | - | core.LazyRegister(&xStaticRecMutexLock, "GLIB", "g_static_rec_mutex_lock", false) | |||
| 1216 | - | ||||
| 1217 | xStaticRecMutexLock(x.GoPointer()) | 1131 | xStaticRecMutexLock(x.GoPointer()) | ||
| 1218 | } | 1132 | } | ||
| 1219 | 1133 | ||||
| @@ -1221,8 +1135,6 @@ var xStaticRecMutexLockFull func(uintptr, uint) | |||||
| 1221 | 1135 | ||||
| 1222 | // Works like calling g_static_rec_mutex_lock() for @mutex @depth times. | 1136 | // Works like calling g_static_rec_mutex_lock() for @mutex @depth times. | ||
| 1223 | func (x *StaticRecMutex) LockFull(DepthVar uint) { | 1137 | func (x *StaticRecMutex) LockFull(DepthVar uint) { | ||
| 1224 | - | core.LazyRegister(&xStaticRecMutexLockFull, "GLIB", "g_static_rec_mutex_lock_full", false) | |||
| 1225 | - | ||||
| 1226 | xStaticRecMutexLockFull(x.GoPointer(), DepthVar) | 1138 | xStaticRecMutexLockFull(x.GoPointer(), DepthVar) | ||
| 1227 | } | 1139 | } | ||
| 1228 | 1140 | ||||
| @@ -1234,8 +1146,6 @@ var xStaticRecMutexTrylock func(uintptr) bool | |||||
| 1234 | // functions increases the depth of @mutex and immediately returns | 1146 | // functions increases the depth of @mutex and immediately returns | ||
| 1235 | // %TRUE. | 1147 | // %TRUE. | ||
| 1236 | func (x *StaticRecMutex) Trylock() bool { | 1148 | func (x *StaticRecMutex) Trylock() bool { | ||
| 1237 | - | core.LazyRegister(&xStaticRecMutexTrylock, "GLIB", "g_static_rec_mutex_trylock", false) | |||
| 1238 | - | ||||
| 1239 | cret := xStaticRecMutexTrylock(x.GoPointer()) | 1149 | cret := xStaticRecMutexTrylock(x.GoPointer()) | ||
| 1240 | return cret | 1150 | return cret | ||
| 1241 | } | 1151 | } | ||
| @@ -1248,8 +1158,6 @@ var xStaticRecMutexUnlock func(uintptr) | |||||
| 1248 | // blocked in a g_static_rec_mutex_lock() call for @mutex, it will be | 1158 | // blocked in a g_static_rec_mutex_lock() call for @mutex, it will be | ||
| 1249 | // woken and can lock @mutex itself. | 1159 | // woken and can lock @mutex itself. | ||
| 1250 | func (x *StaticRecMutex) Unlock() { | 1160 | func (x *StaticRecMutex) Unlock() { | ||
| 1251 | - | core.LazyRegister(&xStaticRecMutexUnlock, "GLIB", "g_static_rec_mutex_unlock", false) | |||
| 1252 | - | ||||
| 1253 | xStaticRecMutexUnlock(x.GoPointer()) | 1161 | xStaticRecMutexUnlock(x.GoPointer()) | ||
| 1254 | } | 1162 | } | ||
| 1255 | 1163 | ||||
| @@ -1263,8 +1171,6 @@ var xStaticRecMutexUnlockFull func(uintptr) uint | |||||
| 1263 | // g_static_rec_mutex_lock_full() with the depth returned by this | 1171 | // g_static_rec_mutex_lock_full() with the depth returned by this | ||
| 1264 | // function. | 1172 | // function. | ||
| 1265 | func (x *StaticRecMutex) UnlockFull() uint { | 1173 | func (x *StaticRecMutex) UnlockFull() uint { | ||
| 1266 | - | core.LazyRegister(&xStaticRecMutexUnlockFull, "GLIB", "g_static_rec_mutex_unlock_full", false) | |||
| 1267 | - | ||||
| 1268 | cret := xStaticRecMutexUnlockFull(x.GoPointer()) | 1174 | cret := xStaticRecMutexUnlockFull(x.GoPointer()) | ||
| 1269 | return cret | 1175 | return cret | ||
| 1270 | } | 1176 | } | ||
| @@ -1297,7 +1203,6 @@ type Thread struct { | |||||
| 1297 | var xThreadGLibType func() types.GType | 1203 | var xThreadGLibType func() types.GType | ||
| 1298 | 1204 | ||||
| 1299 | func ThreadGLibType() types.GType { | 1205 | func ThreadGLibType() types.GType { | ||
| 1300 | - | core.LazyRegister(&xThreadGLibType, "GLIB", "g_thread_get_type", false) | |||
| 1301 | return xThreadGLibType() | 1206 | return xThreadGLibType() | ||
| 1302 | } | 1207 | } | ||
| 1303 | 1208 | ||||
| @@ -1343,8 +1248,6 @@ var xNewThread func(uintptr, uintptr, uintptr) uintptr | |||||
| 1343 | // Starting with GLib 2.64 the behaviour is now consistent between Windows and | 1248 | // Starting with GLib 2.64 the behaviour is now consistent between Windows and | ||
| 1344 | // POSIX and all threads inherit their parent thread's priority. | 1249 | // POSIX and all threads inherit their parent thread's priority. | ||
| 1345 | func NewThread(NameVar *string, FuncVar *ThreadFunc, DataVar uintptr) *Thread { | 1250 | func NewThread(NameVar *string, FuncVar *ThreadFunc, DataVar uintptr) *Thread { | ||
| 1346 | - | core.LazyRegister(&xNewThread, "GLIB", "g_thread_new", false) | |||
| 1347 | - | ||||
| 1348 | NameVarPtr := core.GStrdupNullable(NameVar) | 1251 | NameVarPtr := core.GStrdupNullable(NameVar) | ||
| 1349 | defer core.GFreeNullable(NameVarPtr) | 1252 | defer core.GFreeNullable(NameVarPtr) | ||
| 1350 | 1253 | ||||
| @@ -1363,7 +1266,6 @@ var xThreadTryNew func(uintptr, uintptr, uintptr, **Error) uintptr | |||||
| 1363 | // If a thread can not be created (due to resource limits), | 1266 | // If a thread can not be created (due to resource limits), | ||
| 1364 | // @error is set and %NULL is returned. | 1267 | // @error is set and %NULL is returned. | ||
| 1365 | func ThreadTryNew(NameVar *string, FuncVar *ThreadFunc, DataVar uintptr) (*Thread, error) { | 1268 | func ThreadTryNew(NameVar *string, FuncVar *ThreadFunc, DataVar uintptr) (*Thread, error) { | ||
| 1366 | - | core.LazyRegister(&xThreadTryNew, "GLIB", "g_thread_try_new", false) | |||
| 1367 | var cerr *Error | 1269 | var cerr *Error | ||
| 1368 | 1270 | ||||
| 1369 | NameVarPtr := core.GStrdupNullable(NameVar) | 1271 | NameVarPtr := core.GStrdupNullable(NameVar) | ||
| @@ -1385,8 +1287,6 @@ var xThreadGetName func(uintptr) string | |||||
| 1385 | // | 1287 | // | ||
| 1386 | // This function is intended for debugging purposes. | 1288 | // This function is intended for debugging purposes. | ||
| 1387 | func (x *Thread) GetName() string { | 1289 | func (x *Thread) GetName() string { | ||
| 1388 | - | core.LazyRegister(&xThreadGetName, "GLIB", "g_thread_get_name", false) | |||
| 1389 | - | ||||
| 1390 | cret := xThreadGetName(x.GoPointer()) | 1290 | cret := xThreadGetName(x.GoPointer()) | ||
| 1391 | return cret | 1291 | return cret | ||
| 1392 | } | 1292 | } | ||
| @@ -1410,8 +1310,6 @@ var xThreadJoin func(uintptr) uintptr | |||||
| 1410 | // to be freed. Use g_thread_ref() to obtain an extra reference if you | 1310 | // to be freed. Use g_thread_ref() to obtain an extra reference if you | ||
| 1411 | // want to keep the GThread alive beyond the g_thread_join() call. | 1311 | // want to keep the GThread alive beyond the g_thread_join() call. | ||
| 1412 | func (x *Thread) Join() uintptr { | 1312 | func (x *Thread) Join() uintptr { | ||
| 1413 | - | core.LazyRegister(&xThreadJoin, "GLIB", "g_thread_join", false) | |||
| 1414 | - | ||||
| 1415 | cret := xThreadJoin(x.GoPointer()) | 1313 | cret := xThreadJoin(x.GoPointer()) | ||
| 1416 | return cret | 1314 | return cret | ||
| 1417 | } | 1315 | } | ||
| @@ -1420,8 +1318,6 @@ var xThreadRef func(uintptr) uintptr | |||||
| 1420 | 1318 | ||||
| 1421 | // Increase the reference count on @thread. | 1319 | // Increase the reference count on @thread. | ||
| 1422 | func (x *Thread) Ref() *Thread { | 1320 | func (x *Thread) Ref() *Thread { | ||
| 1423 | - | core.LazyRegister(&xThreadRef, "GLIB", "g_thread_ref", false) | |||
| 1424 | - | ||||
| 1425 | cret := xThreadRef(x.GoPointer()) | 1321 | cret := xThreadRef(x.GoPointer()) | ||
| 1426 | if cret == 0 { | 1322 | if cret == 0 { | ||
| 1427 | return nil | 1323 | return nil | ||
| @@ -1433,8 +1329,6 @@ var xThreadSetPriority func(uintptr, ThreadPriority) | |||||
| 1433 | 1329 | ||||
| 1434 | // This function does nothing. | 1330 | // This function does nothing. | ||
| 1435 | func (x *Thread) SetPriority(PriorityVar ThreadPriority) { | 1331 | func (x *Thread) SetPriority(PriorityVar ThreadPriority) { | ||
| 1436 | - | core.LazyRegister(&xThreadSetPriority, "GLIB", "g_thread_set_priority", false) | |||
| 1437 | - | ||||
| 1438 | xThreadSetPriority(x.GoPointer(), PriorityVar) | 1332 | xThreadSetPriority(x.GoPointer(), PriorityVar) | ||
| 1439 | } | 1333 | } | ||
| 1440 | 1334 | ||||
| @@ -1447,8 +1341,6 @@ var xThreadUnref func(uintptr) | |||||
| 1447 | // it is running, so it is safe to drop your own reference to it | 1341 | // it is running, so it is safe to drop your own reference to it | ||
| 1448 | // if you don't need it anymore. | 1342 | // if you don't need it anymore. | ||
| 1449 | func (x *Thread) Unref() { | 1343 | func (x *Thread) Unref() { | ||
| 1450 | - | core.LazyRegister(&xThreadUnref, "GLIB", "g_thread_unref", false) | |||
| 1451 | - | ||||
| 1452 | xThreadUnref(x.GoPointer()) | 1344 | xThreadUnref(x.GoPointer()) | ||
| 1453 | } | 1345 | } | ||
| 1454 | 1346 | ||||
| @@ -1884,7 +1776,7 @@ func (x *ThreadFunctions) OverrideThreadCreate(cb func(*ThreadFunc, uintptr, uin | |||||
| 1884 | if cb == nil { | 1776 | if cb == nil { | ||
| 1885 | x.xThreadCreate = 0 | 1777 | x.xThreadCreate = 0 | ||
| 1886 | } else { | 1778 | } else { | ||
| 1887 | - | x.xThreadCreate = purego.NewCallback(func(FuncVarp uintptr, DataVarp uintptr, StackSizeVarp uint, JoinableVarp bool, BoundVarp bool, PriorityVarp ThreadPriority, ThreadVarp uintptr, cerrp **Error) { | 1779 | + | x.xThreadCreate = purego.NewCallback(func(FuncVarp uintptr, DataVarp uintptr, StackSizeVarp uint, JoinableVarp bool, BoundVarp bool, PriorityVarp ThreadPriority, ThreadVarp uintptr) { |
| 1888 | cb((*ThreadFunc)(unsafe.Pointer(FuncVarp)), DataVarp, StackSizeVarp, JoinableVarp, BoundVarp, PriorityVarp, ThreadVarp) | 1780 | cb((*ThreadFunc)(unsafe.Pointer(FuncVarp)), DataVarp, StackSizeVarp, JoinableVarp, BoundVarp, PriorityVarp, ThreadVarp) | ||
| 1889 | }) | 1781 | }) | ||
| 1890 | } | 1782 | } | ||
| @@ -1896,11 +1788,10 @@ func (x *ThreadFunctions) GetThreadCreate() func(*ThreadFunc, uintptr, uint, boo | |||||
| 1896 | if x.xThreadCreate == 0 { | 1788 | if x.xThreadCreate == 0 { | ||
| 1897 | return nil | 1789 | return nil | ||
| 1898 | } | 1790 | } | ||
| 1899 | - | var rawCallback func(FuncVarp uintptr, DataVarp uintptr, StackSizeVarp uint, JoinableVarp bool, BoundVarp bool, PriorityVarp ThreadPriority, ThreadVarp uintptr, cerrp **Error) | 1791 | + | var rawCallback func(FuncVarp uintptr, DataVarp uintptr, StackSizeVarp uint, JoinableVarp bool, BoundVarp bool, PriorityVarp ThreadPriority, ThreadVarp uintptr) |
| 1900 | purego.RegisterFunc(&rawCallback, x.xThreadCreate) | 1792 | purego.RegisterFunc(&rawCallback, x.xThreadCreate) | ||
| 1901 | return func(FuncVar *ThreadFunc, DataVar uintptr, StackSizeVar uint, JoinableVar bool, BoundVar bool, PriorityVar ThreadPriority, ThreadVar uintptr) { | 1793 | return func(FuncVar *ThreadFunc, DataVar uintptr, StackSizeVar uint, JoinableVar bool, BoundVar bool, PriorityVar ThreadPriority, ThreadVar uintptr) { | ||
| 1902 | - | var cerr *Error | 1794 | + | rawCallback(NewCallback(FuncVar), DataVar, StackSizeVar, JoinableVar, BoundVar, PriorityVar, ThreadVar) |
| 1903 | - | rawCallback(NewCallback(FuncVar), DataVar, StackSizeVar, JoinableVar, BoundVar, PriorityVar, ThreadVar, &cerr) | |||
| 1904 | } | 1795 | } | ||
| 1905 | } | 1796 | } | ||
| 1906 | 1797 | ||||
| @@ -2167,8 +2058,6 @@ var xCondNew func() uintptr | |||||
| 2167 | 2058 | ||||
| 2168 | // Allocates and initializes a new #GCond. | 2059 | // Allocates and initializes a new #GCond. | ||
| 2169 | func CondNew() *Cond { | 2060 | func CondNew() *Cond { | ||
| 2170 | - | core.LazyRegister(&xCondNew, "GLIB", "g_cond_new", false) | |||
| 2171 | - | ||||
| 2172 | cret := xCondNew() | 2061 | cret := xCondNew() | ||
| 2173 | if cret == 0 { | 2062 | if cret == 0 { | ||
| 2174 | return nil | 2063 | return nil | ||
| @@ -2183,8 +2072,6 @@ var xGetNumProcessors func() uint | |||||
| 2183 | // used as a parameter to g_thread_pool_new() for CPU bound tasks and | 2072 | // used as a parameter to g_thread_pool_new() for CPU bound tasks and | ||
| 2184 | // similar cases. | 2073 | // similar cases. | ||
| 2185 | func GetNumProcessors() uint { | 2074 | func GetNumProcessors() uint { | ||
| 2186 | - | core.LazyRegister(&xGetNumProcessors, "GLIB", "g_get_num_processors", false) | |||
| 2187 | - | ||||
| 2188 | cret := xGetNumProcessors() | 2075 | cret := xGetNumProcessors() | ||
| 2189 | return cret | 2076 | return cret | ||
| 2190 | } | 2077 | } | ||
| @@ -2193,8 +2080,6 @@ var xMutexNew func() *Mutex | |||||
| 2193 | 2080 | ||||
| 2194 | // Allocates and initializes a new #GMutex. | 2081 | // Allocates and initializes a new #GMutex. | ||
| 2195 | func MutexNew() *Mutex { | 2082 | func MutexNew() *Mutex { | ||
| 2196 | - | core.LazyRegister(&xMutexNew, "GLIB", "g_mutex_new", false) | |||
| 2197 | - | ||||
| 2198 | cret := xMutexNew() | 2083 | cret := xMutexNew() | ||
| 2199 | return cret | 2084 | return cret | ||
| 2200 | } | 2085 | } | ||
| @@ -2229,8 +2114,6 @@ var xOnceInitEnter func(*uintptr) bool | |||||
| 2229 | // While @location has a `volatile` qualifier, this is a historical artifact and | 2114 | // While @location has a `volatile` qualifier, this is a historical artifact and | ||
| 2230 | // the pointer passed to it should not be `volatile`. | 2115 | // the pointer passed to it should not be `volatile`. | ||
| 2231 | func OnceInitEnter(LocationVar *uintptr) bool { | 2116 | func OnceInitEnter(LocationVar *uintptr) bool { | ||
| 2232 | - | core.LazyRegister(&xOnceInitEnter, "GLIB", "g_once_init_enter", false) | |||
| 2233 | - | ||||
| 2234 | cret := xOnceInitEnter(LocationVar) | 2117 | cret := xOnceInitEnter(LocationVar) | ||
| 2235 | return cret | 2118 | return cret | ||
| 2236 | } | 2119 | } | ||
| @@ -2238,8 +2121,6 @@ func OnceInitEnter(LocationVar *uintptr) bool { | |||||
| 2238 | var xOnceInitEnterImpl func(uint) bool | 2121 | var xOnceInitEnterImpl func(uint) bool | ||
| 2239 | 2122 | ||||
| 2240 | func OnceInitEnterImpl(LocationVar uint) bool { | 2123 | func OnceInitEnterImpl(LocationVar uint) bool { | ||
| 2241 | - | core.LazyRegister(&xOnceInitEnterImpl, "GLIB", "g_once_init_enter_impl", false) | |||
| 2242 | - | ||||
| 2243 | cret := xOnceInitEnterImpl(LocationVar) | 2124 | cret := xOnceInitEnterImpl(LocationVar) | ||
| 2244 | return cret | 2125 | return cret | ||
| 2245 | } | 2126 | } | ||
| @@ -2264,8 +2145,6 @@ var xOnceInitEnterPointer func(uintptr) bool | |||||
| 2264 | // | 2145 | // | ||
| 2265 | // ]| | 2146 | // ]| | ||
| 2266 | func OnceInitEnterPointer(LocationVar uintptr) bool { | 2147 | func OnceInitEnterPointer(LocationVar uintptr) bool { | ||
| 2267 | - | core.LazyRegister(&xOnceInitEnterPointer, "GLIB", "g_once_init_enter_pointer", false) | |||
| 2268 | - | ||||
| 2269 | cret := xOnceInitEnterPointer(LocationVar) | 2148 | cret := xOnceInitEnterPointer(LocationVar) | ||
| 2270 | return cret | 2149 | return cret | ||
| 2271 | } | 2150 | } | ||
| @@ -2281,8 +2160,6 @@ var xOnceInitLeave func(*uintptr, uint) | |||||
| 2281 | // While @location has a `volatile` qualifier, this is a historical artifact and | 2160 | // While @location has a `volatile` qualifier, this is a historical artifact and | ||
| 2282 | // the pointer passed to it should not be `volatile`. | 2161 | // the pointer passed to it should not be `volatile`. | ||
| 2283 | func OnceInitLeave(LocationVar *uintptr, ResultVar uint) { | 2162 | func OnceInitLeave(LocationVar *uintptr, ResultVar uint) { | ||
| 2284 | - | core.LazyRegister(&xOnceInitLeave, "GLIB", "g_once_init_leave", false) | |||
| 2285 | - | ||||
| 2286 | xOnceInitLeave(LocationVar, ResultVar) | 2163 | xOnceInitLeave(LocationVar, ResultVar) | ||
| 2287 | } | 2164 | } | ||
| 2288 | 2165 | ||||
| @@ -2297,8 +2174,6 @@ var xOnceInitLeavePointer func(uintptr, uintptr) | |||||
| 2297 | // This functions behaves in the same way as g_once_init_leave(), but | 2174 | // This functions behaves in the same way as g_once_init_leave(), but | ||
| 2298 | // can be used to initialize pointers (or #guintptr) instead of #gsize. | 2175 | // can be used to initialize pointers (or #guintptr) instead of #gsize. | ||
| 2299 | func OnceInitLeavePointer(LocationVar uintptr, ResultVar uintptr) { | 2176 | func OnceInitLeavePointer(LocationVar uintptr, ResultVar uintptr) { | ||
| 2300 | - | core.LazyRegister(&xOnceInitLeavePointer, "GLIB", "g_once_init_leave_pointer", false) | |||
| 2301 | - | ||||
| 2302 | xOnceInitLeavePointer(LocationVar, ResultVar) | 2177 | xOnceInitLeavePointer(LocationVar, ResultVar) | ||
| 2303 | } | 2178 | } | ||
| 2304 | 2179 | ||||
| @@ -2306,8 +2181,6 @@ var xPrivateNew func(uintptr) uintptr | |||||
| 2306 | 2181 | ||||
| 2307 | // Creates a new #GPrivate. | 2182 | // Creates a new #GPrivate. | ||
| 2308 | func PrivateNew(NotifyVar *DestroyNotify) *Private { | 2183 | func PrivateNew(NotifyVar *DestroyNotify) *Private { | ||
| 2309 | - | core.LazyRegister(&xPrivateNew, "GLIB", "g_private_new", false) | |||
| 2310 | - | ||||
| 2311 | cret := xPrivateNew(NewCallbackNullable(NotifyVar)) | 2184 | cret := xPrivateNew(NewCallbackNullable(NotifyVar)) | ||
| 2312 | if cret == 0 { | 2185 | if cret == 0 { | ||
| 2313 | return nil | 2186 | return nil | ||
| @@ -2330,7 +2203,6 @@ var xThreadCreate func(uintptr, uintptr, bool, **Error) uintptr | |||||
| 2330 | // calling g_thread_unref() or g_thread_join(). If @joinable is %FALSE | 2203 | // calling g_thread_unref() or g_thread_join(). If @joinable is %FALSE | ||
| 2331 | // then you should probably not touch the return value. | 2204 | // then you should probably not touch the return value. | ||
| 2332 | func ThreadCreate(FuncVar *ThreadFunc, DataVar uintptr, JoinableVar bool) (*Thread, error) { | 2205 | func ThreadCreate(FuncVar *ThreadFunc, DataVar uintptr, JoinableVar bool) (*Thread, error) { | ||
| 2333 | - | core.LazyRegister(&xThreadCreate, "GLIB", "g_thread_create", false) | |||
| 2334 | var cerr *Error | 2206 | var cerr *Error | ||
| 2335 | 2207 | ||||
| 2336 | cret := xThreadCreate(NewCallback(FuncVar), DataVar, JoinableVar, &cerr) | 2208 | cret := xThreadCreate(NewCallback(FuncVar), DataVar, JoinableVar, &cerr) | ||
| @@ -2347,7 +2219,6 @@ var xThreadCreateFull func(uintptr, uintptr, uint, bool, bool, ThreadPriority, * | |||||
| 2347 | 2219 | ||||
| 2348 | // This function creates a new thread. | 2220 | // This function creates a new thread. | ||
| 2349 | func ThreadCreateFull(FuncVar *ThreadFunc, DataVar uintptr, StackSizeVar uint, JoinableVar bool, BoundVar bool, PriorityVar ThreadPriority) (*Thread, error) { | 2221 | func ThreadCreateFull(FuncVar *ThreadFunc, DataVar uintptr, StackSizeVar uint, JoinableVar bool, BoundVar bool, PriorityVar ThreadPriority) (*Thread, error) { | ||
| 2350 | - | core.LazyRegister(&xThreadCreateFull, "GLIB", "g_thread_create_full", false) | |||
| 2351 | var cerr *Error | 2222 | var cerr *Error | ||
| 2352 | 2223 | ||||
| 2353 | cret := xThreadCreateFull(NewCallback(FuncVar), DataVar, StackSizeVar, JoinableVar, BoundVar, PriorityVar, &cerr) | 2224 | cret := xThreadCreateFull(NewCallback(FuncVar), DataVar, StackSizeVar, JoinableVar, BoundVar, PriorityVar, &cerr) | ||
| @@ -2376,8 +2247,6 @@ var xThreadExit func(uintptr) | |||||
| 2376 | // this function from a thread created with another threading library | 2247 | // this function from a thread created with another threading library | ||
| 2377 | // or or from within a #GThreadPool. | 2248 | // or or from within a #GThreadPool. | ||
| 2378 | func ThreadExit(RetvalVar uintptr) { | 2249 | func ThreadExit(RetvalVar uintptr) { | ||
| 2379 | - | core.LazyRegister(&xThreadExit, "GLIB", "g_thread_exit", false) | |||
| 2380 | - | ||||
| 2381 | xThreadExit(RetvalVar) | 2250 | xThreadExit(RetvalVar) | ||
| 2382 | } | 2251 | } | ||
| 2383 | 2252 | ||||
| @@ -2395,8 +2264,6 @@ var xThreadForeach func(uintptr, uintptr) | |||||
| 2395 | // Due to thread lifetime checks, this function has an execution complexity | 2264 | // Due to thread lifetime checks, this function has an execution complexity | ||
| 2396 | // which is quadratic in the number of existing threads. | 2265 | // which is quadratic in the number of existing threads. | ||
| 2397 | func ThreadForeach(ThreadFuncVar *Func, UserDataVar uintptr) { | 2266 | func ThreadForeach(ThreadFuncVar *Func, UserDataVar uintptr) { | ||
| 2398 | - | core.LazyRegister(&xThreadForeach, "GLIB", "g_thread_foreach", false) | |||
| 2399 | - | ||||
| 2400 | xThreadForeach(NewCallback(ThreadFuncVar), UserDataVar) | 2267 | xThreadForeach(NewCallback(ThreadFuncVar), UserDataVar) | ||
| 2401 | } | 2268 | } | ||
| 2402 | 2269 | ||||
| @@ -2404,8 +2271,6 @@ var xThreadGetInitialized func() bool | |||||
| 2404 | 2271 | ||||
| 2405 | // Indicates if g_thread_init() has been called. | 2272 | // Indicates if g_thread_init() has been called. | ||
| 2406 | func ThreadGetInitialized() bool { | 2273 | func ThreadGetInitialized() bool { | ||
| 2407 | - | core.LazyRegister(&xThreadGetInitialized, "GLIB", "g_thread_get_initialized", false) | |||
| 2408 | - | ||||
| 2409 | cret := xThreadGetInitialized() | 2274 | cret := xThreadGetInitialized() | ||
| 2410 | return cret | 2275 | return cret | ||
| 2411 | } | 2276 | } | ||
| @@ -2435,16 +2300,12 @@ var xThreadInit func(uintptr) | |||||
| 2435 | // functions of GLib. Those can be used without having to link | 2300 | // functions of GLib. Those can be used without having to link | ||
| 2436 | // with the thread libraries. | 2301 | // with the thread libraries. | ||
| 2437 | func ThreadInit(VtableVar uintptr) { | 2302 | func ThreadInit(VtableVar uintptr) { | ||
| 2438 | - | core.LazyRegister(&xThreadInit, "GLIB", "g_thread_init", false) | |||
| 2439 | - | ||||
| 2440 | xThreadInit(VtableVar) | 2303 | xThreadInit(VtableVar) | ||
| 2441 | } | 2304 | } | ||
| 2442 | 2305 | ||||
| 2443 | var xThreadInitWithErrorcheckMutexes func(uintptr) | 2306 | var xThreadInitWithErrorcheckMutexes func(uintptr) | ||
| 2444 | 2307 | ||||
| 2445 | func ThreadInitWithErrorcheckMutexes(VtableVar uintptr) { | 2308 | func ThreadInitWithErrorcheckMutexes(VtableVar uintptr) { | ||
| 2446 | - | core.LazyRegister(&xThreadInitWithErrorcheckMutexes, "GLIB", "g_thread_init_with_errorcheck_mutexes", false) | |||
| 2447 | - | ||||
| 2448 | xThreadInitWithErrorcheckMutexes(VtableVar) | 2309 | xThreadInitWithErrorcheckMutexes(VtableVar) | ||
| 2449 | } | 2310 | } | ||
| 2450 | 2311 | ||||
| @@ -2460,8 +2321,6 @@ var xThreadSelf func() uintptr | |||||
| 2460 | // (i.e. comparisons) but you must not use GLib functions (such | 2321 | // (i.e. comparisons) but you must not use GLib functions (such | ||
| 2461 | // as g_thread_join()) on these threads. | 2322 | // as g_thread_join()) on these threads. | ||
| 2462 | func ThreadSelf() *Thread { | 2323 | func ThreadSelf() *Thread { | ||
| 2463 | - | core.LazyRegister(&xThreadSelf, "GLIB", "g_thread_self", false) | |||
| 2464 | - | ||||
| 2465 | cret := xThreadSelf() | 2324 | cret := xThreadSelf() | ||
| 2466 | if cret == 0 { | 2325 | if cret == 0 { | ||
| 2467 | return nil | 2326 | return nil | ||
| @@ -2476,12 +2335,104 @@ var xThreadYield func() | |||||
| 2476 | // | 2335 | // | ||
| 2477 | // This function is often used as a method to make busy wait less evil. | 2336 | // This function is often used as a method to make busy wait less evil. | ||
| 2478 | func ThreadYield() { | 2337 | func ThreadYield() { | ||
| 2479 | - | core.LazyRegister(&xThreadYield, "GLIB", "g_thread_yield", false) | |||
| 2480 | - | ||||
| 2481 | xThreadYield() | 2338 | xThreadYield() | ||
| 2482 | } | 2339 | } | ||
| 2483 | 2340 | ||||
| 2484 | func init() { | 2341 | func init() { | ||
| 2485 | core.SetPackageName("GLIB", "glib-2.0") | 2342 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 2486 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 2343 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 2344 | + | var libs []uintptr | |||
| 2345 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 2346 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 2347 | + | if err != nil { | |||
| 2348 | + | panic(err) | |||
| 2349 | + | } | |||
| 2350 | + | libs = append(libs, lib) | |||
| 2351 | + | } | |||
| 2352 | + | ||||
| 2353 | + | core.PuregoSafeRegister(&xCondNew, libs, "g_cond_new") | |||
| 2354 | + | core.PuregoSafeRegister(&xGetNumProcessors, libs, "g_get_num_processors") | |||
| 2355 | + | core.PuregoSafeRegister(&xMutexNew, libs, "g_mutex_new") | |||
| 2356 | + | core.PuregoSafeRegister(&xOnceInitEnter, libs, "g_once_init_enter") | |||
| 2357 | + | core.PuregoSafeRegister(&xOnceInitEnterImpl, libs, "g_once_init_enter_impl") | |||
| 2358 | + | core.PuregoSafeRegister(&xOnceInitEnterPointer, libs, "g_once_init_enter_pointer") | |||
| 2359 | + | core.PuregoSafeRegister(&xOnceInitLeave, libs, "g_once_init_leave") | |||
| 2360 | + | core.PuregoSafeRegister(&xOnceInitLeavePointer, libs, "g_once_init_leave_pointer") | |||
| 2361 | + | core.PuregoSafeRegister(&xPrivateNew, libs, "g_private_new") | |||
| 2362 | + | core.PuregoSafeRegister(&xThreadCreate, libs, "g_thread_create") | |||
| 2363 | + | core.PuregoSafeRegister(&xThreadCreateFull, libs, "g_thread_create_full") | |||
| 2364 | + | core.PuregoSafeRegister(&xThreadExit, libs, "g_thread_exit") | |||
| 2365 | + | core.PuregoSafeRegister(&xThreadForeach, libs, "g_thread_foreach") | |||
| 2366 | + | core.PuregoSafeRegister(&xThreadGetInitialized, libs, "g_thread_get_initialized") | |||
| 2367 | + | core.PuregoSafeRegister(&xThreadInit, libs, "g_thread_init") | |||
| 2368 | + | core.PuregoSafeRegister(&xThreadInitWithErrorcheckMutexes, libs, "g_thread_init_with_errorcheck_mutexes") | |||
| 2369 | + | core.PuregoSafeRegister(&xThreadSelf, libs, "g_thread_self") | |||
| 2370 | + | core.PuregoSafeRegister(&xThreadYield, libs, "g_thread_yield") | |||
| 2371 | + | ||||
| 2372 | + | core.PuregoSafeRegister(&xCondBroadcast, libs, "g_cond_broadcast") | |||
| 2373 | + | core.PuregoSafeRegister(&xCondClear, libs, "g_cond_clear") | |||
| 2374 | + | core.PuregoSafeRegister(&xCondFree, libs, "g_cond_free") | |||
| 2375 | + | core.PuregoSafeRegister(&xCondInit, libs, "g_cond_init") | |||
| 2376 | + | core.PuregoSafeRegister(&xCondSignal, libs, "g_cond_signal") | |||
| 2377 | + | core.PuregoSafeRegister(&xCondTimedWait, libs, "g_cond_timed_wait") | |||
| 2378 | + | core.PuregoSafeRegister(&xCondWait, libs, "g_cond_wait") | |||
| 2379 | + | core.PuregoSafeRegister(&xCondWaitUntil, libs, "g_cond_wait_until") | |||
| 2380 | + | ||||
| 2381 | + | core.PuregoSafeRegister(&xOnceImpl, libs, "g_once_impl") | |||
| 2382 | + | ||||
| 2383 | + | core.PuregoSafeRegister(&xPrivateGet, libs, "g_private_get") | |||
| 2384 | + | core.PuregoSafeRegister(&xPrivateReplace, libs, "g_private_replace") | |||
| 2385 | + | core.PuregoSafeRegister(&xPrivateSet, libs, "g_private_set") | |||
| 2386 | + | ||||
| 2387 | + | core.PuregoSafeRegister(&xRWLockClear, libs, "g_rw_lock_clear") | |||
| 2388 | + | core.PuregoSafeRegister(&xRWLockInit, libs, "g_rw_lock_init") | |||
| 2389 | + | core.PuregoSafeRegister(&xRWLockReaderLock, libs, "g_rw_lock_reader_lock") | |||
| 2390 | + | core.PuregoSafeRegister(&xRWLockReaderTrylock, libs, "g_rw_lock_reader_trylock") | |||
| 2391 | + | core.PuregoSafeRegister(&xRWLockReaderUnlock, libs, "g_rw_lock_reader_unlock") | |||
| 2392 | + | core.PuregoSafeRegister(&xRWLockWriterLock, libs, "g_rw_lock_writer_lock") | |||
| 2393 | + | core.PuregoSafeRegister(&xRWLockWriterTrylock, libs, "g_rw_lock_writer_trylock") | |||
| 2394 | + | core.PuregoSafeRegister(&xRWLockWriterUnlock, libs, "g_rw_lock_writer_unlock") | |||
| 2395 | + | ||||
| 2396 | + | core.PuregoSafeRegister(&xRecMutexClear, libs, "g_rec_mutex_clear") | |||
| 2397 | + | core.PuregoSafeRegister(&xRecMutexInit, libs, "g_rec_mutex_init") | |||
| 2398 | + | core.PuregoSafeRegister(&xRecMutexLock, libs, "g_rec_mutex_lock") | |||
| 2399 | + | core.PuregoSafeRegister(&xRecMutexTrylock, libs, "g_rec_mutex_trylock") | |||
| 2400 | + | core.PuregoSafeRegister(&xRecMutexUnlock, libs, "g_rec_mutex_unlock") | |||
| 2401 | + | ||||
| 2402 | + | core.PuregoSafeRegister(&xStaticMutexFree, libs, "g_static_mutex_free") | |||
| 2403 | + | core.PuregoSafeRegister(&xStaticMutexGetMutexImpl, libs, "g_static_mutex_get_mutex_impl") | |||
| 2404 | + | core.PuregoSafeRegister(&xStaticMutexInit, libs, "g_static_mutex_init") | |||
| 2405 | + | ||||
| 2406 | + | core.PuregoSafeRegister(&xStaticPrivateFree, libs, "g_static_private_free") | |||
| 2407 | + | core.PuregoSafeRegister(&xStaticPrivateGet, libs, "g_static_private_get") | |||
| 2408 | + | core.PuregoSafeRegister(&xStaticPrivateInit, libs, "g_static_private_init") | |||
| 2409 | + | core.PuregoSafeRegister(&xStaticPrivateSet, libs, "g_static_private_set") | |||
| 2410 | + | ||||
| 2411 | + | core.PuregoSafeRegister(&xStaticRWLockFree, libs, "g_static_rw_lock_free") | |||
| 2412 | + | core.PuregoSafeRegister(&xStaticRWLockInit, libs, "g_static_rw_lock_init") | |||
| 2413 | + | core.PuregoSafeRegister(&xStaticRWLockReaderLock, libs, "g_static_rw_lock_reader_lock") | |||
| 2414 | + | core.PuregoSafeRegister(&xStaticRWLockReaderTrylock, libs, "g_static_rw_lock_reader_trylock") | |||
| 2415 | + | core.PuregoSafeRegister(&xStaticRWLockReaderUnlock, libs, "g_static_rw_lock_reader_unlock") | |||
| 2416 | + | core.PuregoSafeRegister(&xStaticRWLockWriterLock, libs, "g_static_rw_lock_writer_lock") | |||
| 2417 | + | core.PuregoSafeRegister(&xStaticRWLockWriterTrylock, libs, "g_static_rw_lock_writer_trylock") | |||
| 2418 | + | core.PuregoSafeRegister(&xStaticRWLockWriterUnlock, libs, "g_static_rw_lock_writer_unlock") | |||
| 2419 | + | ||||
| 2420 | + | core.PuregoSafeRegister(&xStaticRecMutexFree, libs, "g_static_rec_mutex_free") | |||
| 2421 | + | core.PuregoSafeRegister(&xStaticRecMutexInit, libs, "g_static_rec_mutex_init") | |||
| 2422 | + | core.PuregoSafeRegister(&xStaticRecMutexLock, libs, "g_static_rec_mutex_lock") | |||
| 2423 | + | core.PuregoSafeRegister(&xStaticRecMutexLockFull, libs, "g_static_rec_mutex_lock_full") | |||
| 2424 | + | core.PuregoSafeRegister(&xStaticRecMutexTrylock, libs, "g_static_rec_mutex_trylock") | |||
| 2425 | + | core.PuregoSafeRegister(&xStaticRecMutexUnlock, libs, "g_static_rec_mutex_unlock") | |||
| 2426 | + | core.PuregoSafeRegister(&xStaticRecMutexUnlockFull, libs, "g_static_rec_mutex_unlock_full") | |||
| 2427 | + | ||||
| 2428 | + | core.PuregoSafeRegister(&xThreadGLibType, libs, "g_thread_get_type") | |||
| 2429 | + | ||||
| 2430 | + | core.PuregoSafeRegister(&xNewThread, libs, "g_thread_new") | |||
| 2431 | + | core.PuregoSafeRegister(&xThreadTryNew, libs, "g_thread_try_new") | |||
| 2432 | + | ||||
| 2433 | + | core.PuregoSafeRegister(&xThreadGetName, libs, "g_thread_get_name") | |||
| 2434 | + | core.PuregoSafeRegister(&xThreadJoin, libs, "g_thread_join") | |||
| 2435 | + | core.PuregoSafeRegister(&xThreadRef, libs, "g_thread_ref") | |||
| 2436 | + | core.PuregoSafeRegister(&xThreadSetPriority, libs, "g_thread_set_priority") | |||
| 2437 | + | core.PuregoSafeRegister(&xThreadUnref, libs, "g_thread_unref") | |||
| 2487 | } | 2438 | } | ||