Re: git to libgit2 code relicensing

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Ericsson
Date: Monday, November 17, 2008 - 2:44 pm

Shawn O. Pearce wrote:

Well, since git_revpool (I've renamed it in my tree, as I had a hard
time not pronouncing it "rev pointer" in my head) is a variable the
user gets back from us, it's about as thread-safe as the various IO
interfaces. That is, if several threads try to write at once, weird
things happen. That's just something the application writer has to
take care of though, and we should make sure to mark the revpool as
"const" in functions that will only read from it without modifying
it.

Speaking of threads though; I think I've solved the thread-local
storage problem for libgit. At least for pretty much all compilers
we care about (gcc, Intel C, MSVC, MSVC++) and a slew of others,
which means we can probably use a saner error-handling now. Personally
I think that's something we can benefit greatly from, as many functions
return "int" where they should return a pointer, only to accommodate
error handling.

I'll get those commits reordered and publish what I've got right now.
http://git.op5.org/git/?p=git/libgit2.git;a=summary will have most of
the stuff in an hour or so.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: git to libgit2 code relicensing, Andreas Ericsson, (Sun Nov 16, 4:50 am)
Re: git to libgit2 code relicensing, Johannes Schindelin, (Sun Nov 16, 2:00 pm)
Re: git to libgit2 code relicensing, Sverre Rabbelier, (Sun Nov 16, 2:09 pm)
Re: git to libgit2 code relicensing, Andreas Ericsson, (Mon Nov 17, 12:24 am)
Re: git to libgit2 code relicensing, Shawn O. Pearce, (Mon Nov 17, 8:40 am)
Re: git to libgit2 code relicensing, Andreas Ericsson, (Mon Nov 17, 2:44 pm)