unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Pointer ownership
@ 2018-12-16  7:42 Dirk Van Haerenborgh
  2018-12-16 23:22 ` David Bremner
  0 siblings, 1 reply; 5+ messages in thread
From: Dirk Van Haerenborgh @ 2018-12-16  7:42 UTC (permalink / raw)
  To: notmuch

[-- Attachment #1: Type: text/plain, Size: 684 bytes --]

Hi all,

I'm the main author for these notmuch rust bindings:
https://github.com/vhdirk/notmuch-rs
In making these bindings safe, it's very important to understand when
memory is reclaimed by notmuch (and when not). And I'm having a hard time
deducing that from the documentation. I've built a couple of c test
routines, but I'm getting none the wiser from that.

For instance, when iterating messages from a thread: Can one still use a
notmuch_message_t* when the thread is destroyed? Are the individual
messages 'owned' by the thread, or only by the query? Same question for
'replies'.

Could someone please shed some light on this? I'd very much appreciate it.

Kind regards
-Dirk

[-- Attachment #2: Type: text/html, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-23 10:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-16  7:42 Pointer ownership Dirk Van Haerenborgh
2018-12-16 23:22 ` David Bremner
2018-12-20  9:21   ` Dirk Van Haerenborgh
2018-12-22  6:11     ` David Bremner
2018-12-23 10:04   ` rhn

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).