[REMINDER] GTK+ IRC Team meeting - 2009-10-27

View: New views
3 Messages — Rating Filter:   Alert me  

[REMINDER] GTK+ IRC Team meeting - 2009-10-27

by Emmanuele Bassi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi everyone;

this is a reminder for the GTK+ team IRC meeting:

* date: 2009-10-27
* time: 20:00 UTC [0]
* channel: #gtk-devel on irc.gnome.org
* agenda:
  - fundamental types for gint16/guint16 (bug: 562498) [jjardon]
  - use target milestone field in bugzilla for creating release-based queries [jjardon]
  - features set for gtk-next
  - features set for glib-next
  - miscellaneous

as always, everyone is invited to attend.

ciao,
 Emmanuele.

[0] http://www.timeanddate.com/worldclock/fixedtime.html?month=10&day=27&year=2009&hour=20&min=0&sec=0&p1=0

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

g_object_new shared memory

by Hieu Le Trung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've posted this through gtk-app-devel list but no good response. So
that I'm doing cross post here.

Here is my situation.
I'm using GLib in my application, and I'm using g_object_new to allocate
memory of an object. As in C++ specification, there is "new" placement
technique that can allow us to place a new object into our predefined
memory region. And we can also do with malloc by redefine the malloc
fuction.

I wonder if we can do it with g_object_new or not? The purpose is to
have g_object_new to allocate memory on my own memory region.

Thanks,
-Hieu

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: g_object_new shared memory

by Tim Janik-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 27 Oct 2009, Hieu Le Trung wrote:

> Hi,
>
> I've posted this through gtk-app-devel list but no good response. So
> that I'm doing cross post here.

Please don't, this list is for discussing development of
the glib and gtk+ libraries, not applications using it.

> I wonder if we can do it with g_object_new or not? The purpose is to
> have g_object_new to allocate memory on my own memory region.

No, this is not possible. GObjects are allocated through
g_slice which uses posix_memalign and falls back on g_malloc
for very big chunks (greater than 1kb). See glib/glib/gmem.h
for an API related to malloc hooks.

> Thanks,
> -Hieu

Yours sincerely,
Tim Janik

---
http://lanedo.com/~timj/
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list